Cache not obeying .htaccess rules

Discussion in 'LiteSpeed Cache General' started by taylormorgen, Jun 13, 2013.

  1. taylormorgen

    taylormorgen New Member

    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
    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: Jun 13, 2013
  2. NiteWave

    NiteWave Administrator

    try remove

    see if work as expected. also, try to remove L from
    RewriteRule .*

Share This Page