Skip to content

Instantly share code, notes, and snippets.

@umkasanki
Forked from addisonhall/gzip-compression
Created January 16, 2017 11:30
Show Gist options
  • Save umkasanki/3362aa0e7e2823d5ba992ac1f9ee5f51 to your computer and use it in GitHub Desktop.
Save umkasanki/3362aa0e7e2823d5ba992ac1f9ee5f51 to your computer and use it in GitHub Desktop.
Gzip configuration that works for now...
# gzip compression -- make it faster!
SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/x-javascript application/x-httpd-php
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip
Header append Vary User-Agent env=!dont-vary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment