What is the best nginx compression gzip level?

Posted by Chamnap on Server Fault See other posts from Server Fault or by Chamnap
Published on 2011-03-29T09:14:53Z Indexed on 2012/11/27 17:06 UTC
Read the original article Hit count: 304

Filed under:
|

I'm using nginx reverse proxy cache with gzip enabled. However, I got some problems from android applications http requests to my rails json web service. It seems when I turn off reverse proxy cache, it works ok because the response header comes without gzip. Therefore, I think the problem caused from gzip. What is the most appropriate level of gzip compression?

gzip  on;
gzip_http_version 1.0;
gzip_vary on;
gzip_comp_level 6;
gzip_proxied any;
gzip_types text/plain text/css text/javascript application/javascript application/json application/x-javascript text/xml application/xml application/xml+rss;

© Server Fault or respective owner

Related posts about nginx

Related posts about gzip