Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

nginx gzip config (See related posts)

  # output compression saves bandwidth 
  gzip              on;
  gzip_proxied      any;
  gzip_http_version 1.1;
  #gzip_min_length   1100;
  gzip_comp_level   5;
  #gzip_buffers      4 8k;
  gzip_types        text/plain text/html text/xml text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/atom+xml;
  #gzip_vary        on;
  #gzip_disable     "MSIE [1-6]\.";

Comments on this post

indiehead posts on Apr 18, 2008 at 10:14
to be honest, a setting of 2 for comp_level would be fine, 5 loses an extra 3-4k, over 3 but not enough to be healthy.
indiehead posts on Apr 18, 2008 at 10:15
but then in todays world of super-fast processors and heavy-duty webapps you can probably get away with 5.

You need to create an account or log in to post comments to this site.


Click here to browse all 4858 code snippets

Related Posts