Skip to content

Instantly share code, notes, and snippets.

@dewski
Created June 2, 2009 18:02
Show Gist options
  • Save dewski/122411 to your computer and use it in GitHub Desktop.
Save dewski/122411 to your computer and use it in GitHub Desktop.
# Gzip/Deflate
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript text/css application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# Far future expires date
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Expires "Thu, 15 Apr 2010 20:00:00 GMT"
</FilesMatch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment