Welcome! Log In Create A New Profile

Advanced

Re: A 503 page gets written to my proxy cache, overwriting the 200

Maxim Dounin
January 16, 2014 05:10PM
Hello!

On Thu, Jan 16, 2014 at 02:50:41PM -0500, rge3 wrote:

> Maxim Dounin Wrote:
> -------------------------------------------------------
>
> > An exiting cache can be bypassed due to proxy_cache_bypass in your
> > config, and 503 response can be cached if it contains
> > Cache-Control and/or Expires which allow caching.
>
> Oh, I hadn't thought of that part about the bypass. Okay, that makes
> sense.
> But what about the Cache-Control/Expires causing it to cache the 503...
> that can
> still happen even if my "proxy_cache_valid" line doesn't list a 503?

The "proxy_cache_valid" directives are used if there are no
Cache-Control/Expires to allow caching (or they are ignored with
proxy_ignore_headers). That is, with "proxy_cache_valid" you can
cache something which isn't normally cached, but they don't
prevent caching of other responses.

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

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

A 503 page gets written to my proxy cache, overwriting the 200

rge3 January 16, 2014 09:02AM

Re: A 503 page gets written to my proxy cache, overwriting the 200

Maxim Dounin January 16, 2014 11:08AM

Re: A 503 page gets written to my proxy cache, overwriting the 200

rge3 January 16, 2014 02:50PM

Re: A 503 page gets written to my proxy cache, overwriting the 200

Maxim Dounin January 16, 2014 05:10PM

Re: A 503 page gets written to my proxy cache, overwriting the 200

rge3 January 17, 2014 07:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 86
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready