Return to Snippet

Revision: 8475
at September 24, 2008 18:41 by iTony


Initial Code
# Set far-future expiry for images, css, and js
# Remember that you MUST change the filename whenever you update these items!
<ifmodule mod_expires.c>
<filesmatch "\.(jpg|jpeg|png|gif|js|css)$">
ExpiresActive on
ExpiresDefault "access plus 10 years"
</filesmatch>
<filesmatch "\.(ico)$">
ExpiresActive on
ExpiresDefault "access plus 2 months"
</filesmatch>
</ifmodule>

Initial URL
http://www.thewebsqueeze.com/articles/yslow-going-from-f-to-a.html/2/

Initial Description


Initial Title
set expire for files in apache

Initial Tags
apache

Initial Language
PHP