Skip to content

Instantly share code, notes, and snippets.

@KristaButler
Created August 9, 2023 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KristaButler/8eaa47c4f7103d6fdf82b199202d9cf9 to your computer and use it in GitHub Desktop.
Save KristaButler/8eaa47c4f7103d6fdf82b199202d9cf9 to your computer and use it in GitHub Desktop.
MemberPress WPX Cloud CDN Caching Exclusions for .htaccess
<IfModule mod_rewrite.c>
RewriteEngine OnRewriteBase
/RewriteCond %{REQUEST_URI} "/thank-you/"
[NC,OR]RewriteCond %{REQUEST_URI} "/login/"
[NC,OR]RewriteCond %{REQUEST_URI} "/account/"
[NC,OR]RewriteCond %{REQUEST_URI} "/register/"
[NC,OR]RewriteCond %{REQUEST_URI} "/mepr/"
[NC,OR]RewriteCond %{REQUEST_URI} "/unauthorized/"
[NC,OR]RewriteRule ^ - [E=nocache:true]Header always set Cache-Control "no-cache" env=nocacheWordPressProtect captcha, 2
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment