W3 Leverage browser caching not working for google pagespeed [closed]

I recommend you to read this article W3 Total Cache -Plugin: The Complete Settings Guide, it’s a great tutorial to manually setup your w3tc.

And when you saving your settings remember to flush your cache because if you don’t Google Pagespeed will test it on the old cached files..

You can try to add this .htaccess rules:

## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
</IfModule>
## EXPIRES CACHING ##

This will sett expire-headers on your content.

Leave a Comment