I always use " gzip_comp_level 4;".
and i already tried "gzip_proxied any;" before, the gzip_proxied property is use for jboss response content. in my settings, js file is handled by Nginx, not jboss:
location /wx/js/ {
root /home/developer/jboss/server/citycard_dev/deploy/citycard.war/;
}
What the issue made me headache is sometimes the page load very fast(1 second), sometimes /wx/js/libs/jquery-ui-1.10.3.min.js load pending more than 30 seconds. I'm sure it should be Nginx issue but don't know how to find reason of the issue. In debug log i cannot found any valuable logs.