Welcome! Log In Create A New Profile

Advanced

Re: what exactly does proxy_http_version mean?

Maxim Dounin
July 03, 2012 01:14PM
Hello!

On Tue, Jul 03, 2012 at 09:58:12AM -0400, admon.org wrote:

> Many thanks Francis!
> Here are my configs, I'm using Nginx as a reverse proxy server to cache
> static files from its upstream servers.

[...]

> I'm trying to implement a smart way to purge cache e.g. by touching the
> file to change its etag. This needs the HTTP/1.1 support. But per my
> tests, Nginx does not return expected value.
>
> $ curl -I -H 'If-None-Match: "9cx7b1-x2e-44xa4x9axd0x0"'
> http://test.stg/crossdomain.xml
>
> This command gives 200 OK return code, but if I use Varnish instead, it
> gives the expected value 304 Not Modified.
> So I'm wondering that it may be caused by the protocal between Nginx and
> the upstream server.
>
> Can you help have another check. Appriciated!

With cache switched on nginx strips all conditional headers in
requests to backends to make sure it'll get full response which
may be cached. And as nginx itself doesn't support entity tags
yet, the request with If-None-Match doesn't return 304.

Support for entity tags are expected to appear soon, somewhere
near upcoming 1.3.3.

Maxim Dounin

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

what exactly does proxy_http_version mean?

admon.org July 03, 2012 04:22AM

Re: what exactly does proxy_http_version mean?

Francis Daly July 03, 2012 05:46AM

Re: what exactly does proxy_http_version mean?

admon.org July 03, 2012 09:58AM

Re: what exactly does proxy_http_version mean?

admon.org July 03, 2012 11:17PM

Re: what exactly does proxy_http_version mean?

Maxim Dounin July 03, 2012 01:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 307
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