Skip to content

Instantly share code, notes, and snippets.

@MattLoyeD
Created April 29, 2014 10:17
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 MattLoyeD/11396123 to your computer and use it in GitHub Desktop.
Save MattLoyeD/11396123 to your computer and use it in GitHub Desktop.
<ifmodule mod_deflate.c>
<filesmatch ".(js|json|css|ico|txt|htm|html|php)$">
SetOutputFilter DEFLATE
</filesmatch>
</ifmodule>
FileETag MTime Size
<ifmodule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 366 days"
</ifmodule>
<ifmodule mod_headers.c>
<filesmatch ".(ico|pdf|json|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Expires "Sat, 27 Dec 2014 23:59:59 GMT"
</filesmatch>
</ifmodule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment