[Plugin: W3 Total Cache] no mod_expires by default
-
Hi,
Apache2 does not install mod_expires by default. Unfortunately, my provider does not install mod_expires for my apache installation.
Therefore, no expiration date is added for e.g. the minified CSS and JS files:<IfModule mod_expires.c> ExpiresActive On ExpiresByType text/css M86400 ExpiresByType application/x-javascript M86400 </IfModule> <IfModule mod_headers.c> Header set Pragma public Header set X-Powered-By "W3 Total Cache/0.8.5.2" Header set Vary "Accept-Encoding" Header append Cache-Control "public, must-revalidate, proxy-revalidate" </IfModule>
Could you please change the default .htaccess to:
<IfModule mod_headers.c> Header set Pragma public Header set X-Powered-By "W3 Total Cache/0.8.5.2" Header set Vary "Accept-Encoding" Header set Cache-Control "max-age=2592000, public, must-revalidate, proxy-revalidate" </IfModule>
Since the files are considered to be static cacheable, algorithms like the Google Pagerank want the files to be cacheable for 30 days, shorter periods of time lead to a decrease of the score.
I already changed my .htaccess file like I described above, but W3 Total Cache always overwrites it…
Best regards,
Arne
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘[Plugin: W3 Total Cache] no mod_expires by default’ is closed to new replies.