Skip to content

Instantly share code, notes, and snippets.

@simonwhatley
Created August 24, 2012 14:03
Show Gist options
  • Save simonwhatley/3450923 to your computer and use it in GitHub Desktop.
Save simonwhatley/3450923 to your computer and use it in GitHub Desktop.
Optimisation with mod_expires
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/gif "access plus 1 months"
ExpiresByType image/jpg "access plus 1 months"
ExpiresByType image/jpeg "access plus 1 months"
ExpiresByType image/png "access plus 1 months"
ExpiresByType image/vnd.microsoft.icon "access plus 1 months"
ExpiresByType image/x-icon "access plus 1 months"
ExpiresByType image/ico "access plus 1 months"
ExpiresByType application/javascript "access plus 1 months"
ExpiresByType application/x-javascript "access plus 1 months"
ExpiresByType text/javascript "access plus 1 months"
ExpiresByType text/css "access plus 1 months"
ExpiresDefault "access plus 1 days"
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment