No gzip compression for HTTP status code 202

Maxim Dounin mdounin at
Tue Dec 4 11:15:23 UTC 2018


On Tue, Dec 04, 2018 at 05:56:00AM -0500, hpuac wrote:

> I noticed that the ngx_http_gzip_module is not compressing the response body
> if the HTTP response status code is 202 (Accepted).
> After having a look at the code, it looks like the filter is only active if
> the status code is 200, 403 or 404.
> (
> )
> Is there any particular reason to not compress other status codes?
> And if not, could we adjust this logic to also compress others, for example
> everything except 204 (No Content)?

Maxim Dounin

More information about the nginx mailing list