.htaccess and browser caching

Posted by Tim on Pro Webmasters See other posts from Pro Webmasters or by Tim
Published on 2012-04-17T23:26:00Z Indexed on 2012/09/25 15:51 UTC
Read the original article Hit count: 150

Filed under:
|

I ran across these suggested htaccess edits. Is this a good practice? Is this something I should implement on my wordpress site?:

<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"
ExpiresDefault "access plus 2 days"
</IfModule>

© Pro Webmasters or respective owner

Related posts about htaccess

Related posts about cache