Welcome! Log In Create A New Profile

Advanced

Re: Nginx doesn't honor Cache-Control: no-cache _request_

August 03, 2009 08:34AM
On Mon, Aug 03, 2009 at 02:28:56PM +0200, Miros??aw Jaworski wrote:

> On Mon, 2009-08-03 at 15:17 +0400, Igor Sysoev wrote:
> > No, currently nginx ignores the reload because everyone may flush
> > popular and heavy generated pages from your cache.
> > I plan to allow reload only from limited set of addresses.
>
> Cache-control: no-cache request isn't supposed to revalidate/invalidate
> cache.
>
> Logic is fairly trivial - exactly as i showed in my nonexisting
> variable/wrong syntax example - nginx should simply omit checking
> the cache when receiving such request, go for the backend and serve
> backend's response without doing anything to the cache.

RFC does not say that server must not cache this response, it just says
that is must bot use previously cached response.

Anyway, "Cache-control" should be supported from trusted addresses only:
nginx is not generic transit proxy, it's accelerator, it's just part
of web-server.


--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

Nginx doesn't honor Cache-Control: no-cache _request_

Mirosław Jaworski August 03, 2009 06:41AM

Re: Nginx doesn't honor Cache-Control: no-cache _request_

Igor Sysoev August 03, 2009 07:17AM

Re: Nginx doesn't honor Cache-Control: no-cache _request_

Mirosław Jaworski August 03, 2009 08:28AM

Re: Nginx doesn't honor Cache-Control: no-cache _request_

Igor Sysoev August 03, 2009 08:34AM

Re: Nginx doesn't honor Cache-Control: no-cache _request_

Mirosław Jaworski August 04, 2009 05:24AM

Re: Nginx doesn't honor Cache-Control: no-cache _request_

?? August 03, 2009 09:01AM

Re: Nginx doesn't honor Cache-Control: no-cache _request_

杨镭 March 01, 2010 01:16PM

Re: Nginx doesn't honor Cache-Control: no-cache _request_

pf shineyear March 07, 2010 12:56PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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