I have Nginx setup as a reverse proxy between the world and my app, and it's successfully gzipping the proxied responses of GET requests with this general config:
gzip on; gzip_min_length 0; gzip_proxied any; gzip_buffers 16 8k; gzip_types application/json text/plain; proxy_set_header Connection ""; proxy_http_version 1.1;
The browser sends the POST with seemingly the right headers:
Accept: application/json, text/plain, */* Accept-Encoding: gzip, deflate
However in the response header there's no
Content-Encoding even thought it has
Can Nginx gzip the HTTP POST Response?