Skip to content

Instantly share code, notes, and snippets.

@fabrikagency
Created June 10, 2009 21:19
Show Gist options
  • Save fabrikagency/127501 to your computer and use it in GitHub Desktop.
Save fabrikagency/127501 to your computer and use it in GitHub Desktop.
nginx settings for good gzip compression
gzip on;
gzip_http_version 1.1;
gzip_vary on;
gzip_comp_level 6;
gzip_proxied any;
gzip_types text/plain text/html text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
# make sure gzip does not lose large gzipped js or css files
# see http://blog.leetsoft.com/2007/7/25/nginx-gzip-ssl
gzip_buffers 16 8k;
# disable gzip for IE 6 before SP1
gzip_disable “MSIE [1-6].(?!.*SV1)”;
@smtchahal
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment