Skip to content

Instantly share code, notes, and snippets.

@patricksimpson
Created March 12, 2014 15:51
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 patricksimpson/9509712 to your computer and use it in GitHub Desktop.
Save patricksimpson/9509712 to your computer and use it in GitHub Desktop.
An example of longer expires.
<ifmodule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 second"
ExpiresByType text/html "access plus 7200 seconds"
ExpiresByType image/gif "access plus 518400 seconds"
ExpiresByType image/jpeg "access plus 518400 seconds"
ExpiresByType image/png "access plus 518400 seconds"
ExpiresByType text/css "access plus 1 month"
ExpiresByType text/javascript "access plus 216000
seconds"
</ifmodule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment