Skip to content

Instantly share code, notes, and snippets.

@philbirnie
Created August 23, 2020 17:19
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 philbirnie/f4565c8087c1f377600f650cd3df29ac to your computer and use it in GitHub Desktop.
Save philbirnie/f4565c8087c1f377600f650cd3df29ac to your computer and use it in GitHub Desktop.
Expires Tags Example
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 1 month"
# CSS
ExpiresByType text/css "access plus 1 year"
# Data interchange
ExpiresByType application/json "access plus 0 seconds"
ExpiresByType application/xml "access plus 0 seconds"
ExpiresByType text/xml "access plus 0 seconds"
# HTML
ExpiresByType text/html "access plus 1 hour"
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment