Expires Headers & Yslow
-
Hello everybody,
Trying to make a website faster I have added the following code to .htaccess
<IfModule mod_expires.c>
# Enable expirations
ExpiresActive On
# Default directive
ExpiresDefault “access plus 1 month”
# My favicon
ExpiresByType image/x-icon “access plus 1 year”
# Images
ExpiresByType image/gif “access plus 1 month”
ExpiresByType image/png “access plus 1 month”
ExpiresByType image/jpg “access plus 1 month”
ExpiresByType image/jpeg “access plus 1 month”
# CSS
ExpiresByType text/css “access plus 1 month”
# Javascript
ExpiresByType application/javascript “access plus 1 year”
</IfModule>Now, testing my site on GTMetrix….Yslow still gives an ‘F’ for the expires headers.
Pagespeed ‘leverage browsing cache’ has a ‘B’ after adding this code (came from an ‘F’ aswell)
Is there anyone who can explain this?
Thanks so much for help & respons
- The topic ‘Expires Headers & Yslow’ is closed to new replies.