Skip to content

Instantly share code, notes, and snippets.

@pariz
Last active August 29, 2015 14:16
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 pariz/b31e648c7827e7722367 to your computer and use it in GitHub Desktop.
Save pariz/b31e648c7827e7722367 to your computer and use it in GitHub Desktop.
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/css "access plus 86400 seconds"
ExpiresByType text/javascript "access plus 86400 seconds"
ExpiresByType application/javascript "access plus 86400 seconds"
ExpiresByType application/x-javascript "access plus 86400 seconds"
</IfModule>
<IfModule mod_headers.c>
<FilesMatch "\\.(css)$">
Header set Cache-Control "max-age=86400, public"
</FilesMatch>
<FilesMatch "\\.(js)$">
Header set Cache-Control "max-age=86400, public"
</FilesMatch>
</IfModule>
Header unset ETag
FileETag none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment