Welcome! Log In Create A New Profile

Advanced

Disable gzip for text/html content-type

Posted by fmyoen 
Disable gzip for text/html content-type
June 01, 2013 05:13AM
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?
Re: Disable gzip for text/html content-type
June 01, 2013 05:36AM
# nginx -V
nginx version: nginx/0.7.67
TLS SNI support enabled
configure arguments: --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-log-path=/var/log/nginx/access.log --http-proxy-temp-path=/var/lib/nginx/proxy --lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid --with-debug --with-http_dav_module --with-http_flv_module --with-http_geoip_module --with-http_gzip_static_module --with-http_realip_module --with-http_stub_status_module --with-http_ssl_module --with-http_sub_module --with-ipv6 --with-mail --with-mail_ssl_module --add-module=/build/buildd-nginx_0.7.67-3+squeeze3-i386-H_wgmw/nginx-0.7.67/modules/nginx-upstream-fair
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 230
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready