Skip to content

Instantly share code, notes, and snippets.

@TorbenL
Created July 9, 2015 05:58
Show Gist options
  • Save TorbenL/27864105c1e1e3c29622 to your computer and use it in GitHub Desktop.
Save TorbenL/27864105c1e1e3c29622 to your computer and use it in GitHub Desktop.
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/html "access plus 1 second"
ExpiresByType text/css "access plus 2 weeks"
ExpiresByType text/javascript "access plus 2 weeks"
ExpiresByType image/jpg "access plus 3 weeks"
ExpiresByType image/png "access plus 3 weeks"
# …
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment