Skip to content

Instantly share code, notes, and snippets.

@tadman
Created February 12, 2010 02:53
Show Gist options
  • Save tadman/302248 to your computer and use it in GitHub Desktop.
Save tadman/302248 to your computer and use it in GitHub Desktop.
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml 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
Header append Vary User-Agent env=!dont-vary
</IfModule>
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType image/gif "access plus 1 day"
ExpiresByType image/jpeg "access plus 1 day"
ExpiresByType image/png "access plus 1 day"
ExpiresByType image/x-icon "access plus 1 day"
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment