Add htaccess expires tags
To add Expires tags to your website, paste this into your root folder .htaccess file
by randompixels 2 years, 4 months ago and tagged with: expires-tag htaccess mod_expires
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
<IfModule mod_expires.c> ExpiresActive On ExpiresDefault "access plus 10 years" ExpiresByType image/gif "access plus 10 years" ExpiresByType image/jpeg "access plus 10 years" ExpiresByType image/png "access plus 10 years" ExpiresByType text/css "access plus 10 years" ExpiresByType text/html "access plus 1 seconds" ExpiresByType text/javascript "access plus 10 years" ExpiresByType image/x-icon "access plus 10 years" ExpiresByType image/ico "access plus 10 years" ExpiresByType application/x-unknown-content-type "access plus 10 years" ExpiresByType application/x-javascript "access plus 10 years" ExpiresByType application/x-shockwave-flash "access plus 10 years" </IfModule> |
Currently 2 comments
To post a comment, you must login.

Why use this? Just for a good grade in Yslow?
It makes smaller headers requests, therefore speeding up the page loading process, and lowering the server load. It's a nice to have feature on a normal website, but it can be crucial on a huge one (facebook like).