Welcome! Log In Create A New Profile

Advanced

Why does nginx always send content encoding as gzip

October 05, 2016 06:29AM
I have set gzip to off

user nginx;
worker_processes 1;

error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;


events {
worker_connections 1024;
}


http {
include /etc/nginx/mime.types;
default_type application/octet-stream;

log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';

access_log /var/log/nginx/access.log main;

sendfile on;
#tcp_nopush on;

keepalive_timeout 65;
gzip off;


include /etc/nginx/conf.d/*.conf;
}
Check it is not set anywhere else

cd /etc/nginx/
grep -R gzip .

./nginx.conf: gzip off;


service nginx restart
yet content is still getiing sent as gzip?

Response Headers

Connection:keep-alive
Content-Encoding:gzip
Content-Length:51
Content-Type:application/json; charset=utf-8
Date:Wed, 05 Oct 2016 10:00:00 GMT
Server:nginx/1.6.2
Vary:Accept-Encoding

Any ideas to turn gzip off completely
Subject Author Posted

Why does nginx always send content encoding as gzip

sobuz October 05, 2016 06:29AM

Re: Why does nginx always send content encoding as gzip

c0nw0nk October 06, 2016 12:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 197
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready