Instantly share code, notes, and snippets.

Embed
What would you like to do?
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