Skip to content

Instantly share code, notes, and snippets.

/.htaccess Secret

Created June 22, 2016 07:47
Show Gist options
  • Save anonymous/71eb3e40ca8a3284c6eee8c41a307ac7 to your computer and use it in GitHub Desktop.
Save anonymous/71eb3e40ca8a3284c6eee8c41a307ac7 to your computer and use it in GitHub Desktop.
## Cache Expiration ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType text/html "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresDefault "access plus 1 month"
</IfModule>
## Cache Expiration ##
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment