Browser cache control does not work
Posted: Thu Sep 24, 2015 11:57 am
Hi everybody!
I am on Apache / PHP 5.6 / CMSMS 1.12
I need to set the cache control max-age to 60 Minutes.
But regardless of the cmsms browser cache setting, the header contains
Cache-Control: public, max-age=10800
.htaccess settings don't apply either:
ExpiresByType text/html "access plus 1 hour"
does not work (filesmatch does't work either).
The only way to change the max-age is turning the "browser cache" setting OFF, which is not desirable:
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
The "Expires" directive follows the setting in cmsms, but unfortunately "Cache-Control" overrides "Expires" ...
Any ideas how to change that?
Cheers,
Alex
I am on Apache / PHP 5.6 / CMSMS 1.12
I need to set the cache control max-age to 60 Minutes.
But regardless of the cmsms browser cache setting, the header contains
Cache-Control: public, max-age=10800
.htaccess settings don't apply either:
ExpiresByType text/html "access plus 1 hour"
does not work (filesmatch does't work either).
The only way to change the max-age is turning the "browser cache" setting OFF, which is not desirable:
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
The "Expires" directive follows the setting in cmsms, but unfortunately "Cache-Control" overrides "Expires" ...
Any ideas how to change that?
Cheers,
Alex