Skip to content

Instantly share code, notes, and snippets.

@leducson1
Last active July 4, 2017 04:37
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 leducson1/a1dbaf3ced17fb59c3880458140f7dd4 to your computer and use it in GitHub Desktop.
Save leducson1/a1dbaf3ced17fb59c3880458140f7dd4 to your computer and use it in GitHub Desktop.
Leverage browser caching
# Leverage browser caching
<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 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 2 days"
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment