Skip to content

Instantly share code, notes, and snippets.

@joshmvandercom
Created April 12, 2010 15:34
Show Gist options
  • Select an option

  • Save joshmvandercom/363695 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown
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