Turn off gzip for a location in Nginx
- by Nyxynyx
How can gzip be turned off for a particular location and all its sub-directories? My main site is at http://mydomain.com and I want to turn gzip off for both http://mydomain.com/foo and http://mydomain.com/foo/bar. gzip is turned on in nginx.conf.
I tried turning off gzip as shown below, but the Response Headers in Chrome's dev tools shows that…