gzip compression for upstream requests

Maxim Dounin mdounin at mdounin.ru
Thu Oct 10 15:05:08 UTC 2019


Hello!

On Thu, Oct 10, 2019 at 05:12:40PM +0300, Dmitry Vereschaka wrote:

> Does nginx support compression of proxied upstream requests (not
> responses)?

No.

> I have configuration below and what I see is that responses are sent

Just a side note: you probably mean "requests" here.

> uncompressed to upstream server (and I'm getting compressed responses from
> upstream, as upstream is also nginx with gzip compression enabled).

Quoting documentation of the gzip directive 
(http://nginx.org/r/gzip):

: Enables or disables gzipping of responses.

Similar wording can be found in the module description above.  
It's about responses, not requests.

[...]

-- 
Maxim Dounin
http://mdounin.ru/


More information about the nginx mailing list