Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Disable gzip for text/html content-type

$
0
0
Hi, is it possible to disable gzipping for text/html content-type files? I've got no luck using nginx 0.7.67 on Debian 6.0.7 with the following options:

gzip off;
gzip_disable Mozilla; # my browser

Nginx unconditionally compresses text/html files once browser sends "Accept-Encoding: gzip, deflate" line in HTTP request. I can modify this behavior for any other content-types except for the mentioned one. Is that an expected behavior?

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>