Created
March 29, 2010 04:03
-
-
Save kennethreitz/347371 to your computer and use it in GitHub Desktop.
Apache htaccess for gzip compression
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_deflate.c> | |
SetOutputFilter DEFLATE | |
# file-types indicated will not be compressed | |
SetEnvIfNoCase Request_URI | |
\.(?:gif|jpe?g|png|rar|zip|pdf)$ no-gzip dont-vary | |
<IfModule mod_headers.c> | |
Header append Vary User-Agent | |
</IfModule> | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment