Answer the question
In order to leave comments, you need to log in
How to force nginx not to remove Accept-Encoding: gzip?
There is a simple scheme
client (Accept-Encoding: gzip) <-> nginx <-> iis
In the place highlighted in bold, for some reason, uncompressed traffic arrives from IIS. And if you make a request directly to IIS, then the IIS response is too tight. In nginx config:
gzip on;
gzip_proxied any;
gzip_types text/plain text/xml text/css application/x-javascript application/json text/javascript application/xml;
gzip_variable on;
gzip_disable "msie6";
gzip_http_version 1.1;
Answer the question
In order to leave comments, you need to log in
Understood. nginx was hammering on http1.0. iis is not able to reap on such version. Registered proxy_http_version 1.1 - it all worked
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question