Skip to content

Instantly share code, notes, and snippets.

@jetchirag
Created October 10, 2016 20:41
Show Gist options
  • Save jetchirag/d21667b0ac86a96920c6b14ed4043939 to your computer and use it in GitHub Desktop.
Save jetchirag/d21667b0ac86a96920c6b14ed4043939 to your computer and use it in GitHub Desktop.
#Expire Header
<FilesMatch "\.(ico|jpg|jpeg|png|gif|js|css|swf)$">
ExpiresDefault "access plus 2 hours"
</FilesMatch>
or
# Expire images header
ExpiresActive On
ExpiresByType image/gif A2592000
ExpiresByType image/png A2592000
ExpiresByType image/jpg A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType text/css A2592000
ExpiresByType text/javascript A2592000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment