[PATCH] Add directive to always gunzip content

Maxim Dounin mdounin at mdounin.ru
Tue May 21 00:26:33 UTC 2013


Hello!

On Sun, May 05, 2013 at 08:50:06AM +0300, Roy Reznik wrote:

> Use this by adding "gunzip_always on;" to configuration.
> This was in the modules to-do list.
> Cheers.

[...]

> @@ -140,13 +148,16 @@
> 
>      r->gzip_vary = 1;
> 
> -    if (!r->gzip_tested) {
> -        if (ngx_http_gzip_ok(r) == NGX_OK) {
> +    /* if configured to gunzip always, don't check request headers */

What's the point of adding Vary header then?

See also here for more details:
http://mailman.nginx.org/pipermail/nginx-devel/2013-January/003284.html

-- 
Maxim Dounin
http://nginx.org/en/donation.html



More information about the nginx-devel mailing list