Skip to content

Instantly share code, notes, and snippets.

@joshmvandercom
Created April 12, 2010 15:34
Show Gist options
  • Save joshmvandercom/363695 to your computer and use it in GitHub Desktop.
Save joshmvandercom/363695 to your computer and use it in GitHub Desktop.
Simple GZIP compression and ETag removal using .htaccess
<FilesMatch "\\.(js|css|html|htm|php|xml)$">
SetOutputFilter DEFLATE
</FilesMatch>
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Expires "Thu, 15 Apr 2011 20:00:00 GMT"
Header unset ETag
FileETag None
</FilesMatch>
@joshmvandercom
Copy link
Author

Simple GZIP compression and ETag removal using .htaccess

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment