Answer the question
In order to leave comments, you need to log in
Why doesn't gzip work on proxy_pass?
API server behind nginx proxy. The application itself zips, but the API does not.
nginx.conf settings
gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/javascript application/x-j$...куча других
gzip_min_length 256;
Answer the question
In order to leave comments, you need to log in
Try gzip_types *; and not a wagon, it’s not clear what. Well, check if there is Accept-Encoding: gzip in the request headers
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question