Skip to content

Instantly share code, notes, and snippets.

@ricksportel
Last active April 22, 2016 13:58
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 ricksportel/fcfb7b343f9e9e29916d8d4f43ff8569 to your computer and use it in GitHub Desktop.
Save ricksportel/fcfb7b343f9e9e29916d8d4f43ff8569 to your computer and use it in GitHub Desktop.
Header unset ETag
FileETag None
##Expire headers
<IfModule mod_expires.c>
# Enable expirations
ExpiresActive On
# Your document html
ExpiresByType text/html "access plus 12 hours"
# Default directive
ExpiresDefault "access plus 1 month"
# My favicon
ExpiresByType image/x-icon "access plus 1 year"
# Media: images, video, audio
ExpiresByType audio/ogg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType video/mp4 "access plus 1 year"
ExpiresByType video/ogg "access plus 1 year"
ExpiresByType video/webm "access plus 1 year"
# CSS
ExpiresByType text/css "access 1 year"
# Javascript
ExpiresByType application/javascript "access plus 1 year"
</IfModule>
@ricksportel
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment