Cache-Control:max-age ignored
-
Hello,
Can someone help me out what is the maximum value of Cache-Control:max-age ?
The problem i am experiencing is that by using the plugin or without the plugin the cache-control:max-age parameter ignores any value above 600.Everything works as it should be BUT when i set
RewriteRule .* – [E=Cache-Control:max-age=86400]
it justs ignores it and keeps the cache only for 10 minutes or 600 seconds.When i hit the webpage for the first time i get X-Litespeed-Cache:”miss” in response header
After few seconds in another tab when i visit webpage for second time i get X-Litespeed-Cache:”hit”.The problem is that if i wait for more than 10 minutes (600 seconds) when i visit the webpage for the third time i get X-Litespeed-Cache:”miss” which is NOT the desired behavior.
I should get X-Litespeed-Cache:”hit” –>see below my .htaccess file.I would be more than helpful if someone could point me to a solution
[ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]
<IfModule LiteSpeed> #CacheEnable public / CacheLookup public on RewriteEngine on RewriteCond %{REQUEST_METHOD} ^(HEAD|GET)$ RewriteCond %{REQUEST_URI} !^/(wp-admin|wp-login.php|wp-cron.php) RewriteRule .* – [E=Cache-Control:max-age=86400] </IfModule> # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
- The topic ‘Cache-Control:max-age ignored’ is closed to new replies.