Cache not obeying .htaccess rules

#1
I have Enable Cache set to No at the server level on a CPanel server. In my .htaccess file on the /public_html root, if I put the line
CacheEnable
in the .htaccess file, everything gets cached even though I have this rule later:
RewriteCond %{REQUEST_METHOD} ^HEAD|GET$
RewriteCond %{HTTP_COOKIE} page_contain_cache_token=yes
RewriteCond %{HTTP_COOKIE} !nocache=yes
RewriteCond %{REQUEST_URI} !/(shopping_cart|login|product_info|checkout_shipping|checkout_success|checkout_confirmation|cron|image|tmsecretarea45)
RewriteRule .* – [L,E=Cache-Control:max-age=3600]
How do I get those rules to be followed?
 
Last edited:
Top