Skip to content

Instantly share code, notes, and snippets.

@mihahribar
Created July 15, 2012 00:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mihahribar/3114128 to your computer and use it in GitHub Desktop.
Save mihahribar/3114128 to your computer and use it in GitHub Desktop.
mod_expires and etag settings
FileETag None
ExpiresActive on
ExpiresDefault "access 1 month"
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresByType text/html "access plus 0 seconds"
ExpiresByType text/css "access plus 1 year"
ExpiresByType application/x-javascript "access plus 1 year"
ExpiresByType application/javascript "access plus 1 year"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment