Skip to content

Instantly share code, notes, and snippets.

@stealth35
Created May 2, 2012 14:03
Show Gist options
  • Save stealth35/2576737 to your computer and use it in GitHub Desktop.
Save stealth35/2576737 to your computer and use it in GitHub Desktop.
Options -Indexes
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 1 month"
ExpiresByType text/html "access plus 0 seconds"
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"
ExpiresByType audio/mp3 "access plus 1 month"
ExpiresByType text/css "access plus 1 year"
ExpiresByType application/javascript "access plus 1 year"
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment