<div dir="ltr">Hey all,<div><br></div><div>I'm running nginx 1.2.6 from a packaged install on Ubuntu 13.04. I'm at a total loss as to how this is happening but I simply cannot disable gzip compression for my server no matter what I try. Setting gzip off; in nginx.conf in the http context doesn't work. I modified the default config setting that was already there. I even moved it to the bottom of the section to see if maybe there was something else that was toggling it on after that config entry. </div>

<div><br></div><div>Is there something else I can look for that would be enabling gzip compression on my server? I saw there's a static gzip compression module that's optionally compiled in but that doesn't seem relevant to my situation as this is a REST call.</div>

<div><br></div><div>Here's my response header from curl which does not appear to gzip compress:</div><div><br></div><div><div>HTTP/1.1 200 OK</div><div>Server: nginx/1.2.6 (Ubuntu)</div><div>Date: Thu, 22 Aug 2013 00:08:26 GMT</div>
<div>Content-Type: application/json</div>
<div>Content-Length: 0</div><div>Connection: keep-alive</div><div>P3P: CP="CAO PSA OUR"</div><div>Set-Cookie: jcid=5215567ae4b0861a8dd5c1dc;Path=/;Domain=.<a href="http://foo.com" target="_blank">foo.com</a>;Expires=Fri, 22-Aug-2014 00:08:26 GMT;Max-Age=31536000</div>

<div>Expires: Thu, 01 Jan 1970 00:00:00 GMT</div><div>ETag: "5215567ae4b0861a8dd5c1dc"</div><div><br></div><div>However that same URL's response headers in any browser (chrome, FF, safari) are as follows:</div>

<div><div><br></div><div>Connection:keep-alive</div><div>Content-Encoding:gzip</div><div>Content-Type:application/json</div><div>Date:Thu, 22 Aug 2013 01:39:24 GMT</div><div>ETag:"521462bfe4b00dcc1c3b7c52-gzip"</div>
<div>
Expires:Thu, 01 Jan 1970 00:00:00 GMT</div><div>P3P:CP="CAO PSA OUR"</div><div>Server:nginx/1.2.6 (Ubuntu)</div><div>Set-Cookie:jcid=521462bfe4b00dcc1c3b7c52;Path=/;Domain=.<a href="http://foo.com" target="_blank">foo.com</a>;Expires=Fri, 22-Aug-2014 01:39:24 GMT;Max-Age=31536000</div>

<div>Transfer-Encoding:chunked</div><div>Vary:Accept-Encoding, User-Agent</div></div><div><br></div><div>I'm certain that I'm doing something wrong but I'm out of ideas at the moment on what to check. Thanks for any insight or pointers anyone may be able to provide.</div>

<div><br></div><div>Cheers!</div><div><br></div><div>-- <br></div><div dir="ltr">-Michael<div><a href="http://twitter.com/mk" target="_blank">http://twitter.com/mk</a></div></div>
</div></div>