N
N
Nikita Rukavkov2019-02-05 11:00:53
Nginx
Nikita Rukavkov, 2019-02-05 11:00:53

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;

It seems that when gzip is enabled on the Nginx side, the accept-encoding: gzip header is cut out in a request that goes to iis. How to make sure that the response is pressed on the iis side?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita Rukavkov, 2019-02-05
@nicosha

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 question

Ask a Question

731 491 924 answers to any question