Welcome! Log In Create A New Profile

Advanced

Re: Default value of gzip_proxied

Maxim Dounin
March 21, 2015 11:26PM
Hello!

On Sun, Mar 22, 2015 at 04:20:12AM +0200, Gena Makhomed wrote:

> On 22.03.2015 3:31, Maxim Dounin wrote:
>
> >- You assume that the behaviour in question is only needed for
> > HTTP/1.0 clients. That's, again, not true, as using "Vary: Accept-Encoding"
> > isn't a good idea either. As already mentioned, even if
> > correctly supported it will cause cache data duplication.
> >
> >If you don't like the behaviour, you can always configure nginx to
> >do whatever you want. But I don't think the default worth
> >changing.
>
> If turn gunzip on - nginx can store in cache only one compressed
> answer from origin server and can correctly provide uncompressed
> content for proxies and clients, which not support compression ?

Yes, though this requires some special configuration. In
particular, you have to instruct your backend to return gzip
(usually by "proxy_set_header Accept-Encoding gzip;" in nginx).
Additionally, if your backen returns "Vary: Accept-Encoding",
you'll have to instruct nginx to ignore it when using nginx 1.7.7+
("proxy_ignore_headers Vary").

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Default value of gzip_proxied

B.R. March 20, 2015 02:44PM

Re: Default value of gzip_proxied

Maxim Dounin March 21, 2015 10:22AM

Re: Default value of gzip_proxied

B.R. March 21, 2015 11:08AM

Re: Default value of gzip_proxied

Maxim Dounin March 21, 2015 09:32PM

Re: Default value of gzip_proxied

Gena Makhomed March 21, 2015 10:22PM

Re: Default value of gzip_proxied

Maxim Dounin March 21, 2015 11:26PM

Re: Default value of gzip_proxied

B.R. March 22, 2015 10:16AM

Re: Default value of gzip_proxied

Maxim Dounin March 22, 2015 01:08PM

Re: Default value of gzip_proxied

B.R. March 24, 2015 02:14PM

Re: Default value of gzip_proxied

Maxim Dounin March 24, 2015 03:32PM

Re: Default value of gzip_proxied

B.R. March 24, 2015 07:02PM

Re: Default value of gzip_proxied

Maxim Dounin March 25, 2015 05:38PM

Re: Default value of gzip_proxied

B.R. March 26, 2015 01:52PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 110
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready