mod_proxy, compression, and chunked responses

Xavier Noria fxn at
Sun Jun 5 20:41:27 MSD 2011

On Mon, May 30, 2011 at 9:33 PM, Xavier Noria <fxn at> wrote:

> I have an application server behind nginx that may output chunked
> responses, and would like to use compression for them as I do for
> ordinary responses.
> Is that possible with nginx? If it is, is it possible in a way that
> nginx compresses stuff on the fly and sends chunked (compressed)
> responses itself rather than buffering the original response and
> sending a non-chunked response itself? (That would defeat the purpose
> of the chunked responses.)

It does not seem to work. It compresses the payload of the application server.

More information about the nginx mailing list