2
Well, I’m having a problem getting the blessed "Enjoy Browser Cache" out of Pagespeed Insights. The site I’m doing this for is Wordpress. The entire internet indicates the same code to be inserted into the . htaccess file, either in English or Portuguese, which is the following:
# COMEÇA BROWSER CACHE
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg “access plus 1 year”
ExpiresByType image/jpeg “access plus 1 year”
ExpiresByType image/gif “access plus 1 year”
ExpiresByType image/png “access plus 1 year”
ExpiresByType text/css “access plus 1 month”
ExpiresByType application/pdf “access plus 1 month”
ExpiresByType text/x-javascript “access plus 1 month”
ExpiresByType application/x-shockwave-flash “access plus 1 month”
ExpiresByType image/x-icon “access plus 1 year”
ExpiresByType application/javascript “access plus 1 month”
ExpiresDefault “access plus 2 days”
</IfModule>
# TERMINA BROWSER CACHE
It’s just that whenever I use this, the site is off the air, I don’t know why it happens, I’ve used this same code on other sites and it’s not like this.
Would anyone know if there’s been any change and that way isn’t working anymore?
That’s right, buddy. Thank you very much.
– Julio Cesar