Welcome! Log In Create A New Profile

Advanced

Re: proxy_store help requested

Maxim Dounin
March 10, 2014 07:08PM
Hello!

On Sun, Mar 09, 2014 at 10:34:08PM -0400, nginx_newbie_too wrote:

> The 304 response from the upstream server ended up being the culprit. If I
> changed the upstream server to have 'if_modified_since off;" and thus always
> respond with a 200 and the content, the problem is resolved. To freshen the
> mirror, I can then simply remove the mirrored content from the downstream
> server; no nginx processes even need to be restarted.

So the actual problem was incorrect testing, not a
misconfiguration. And yes, proxy_store only stores 200 responses
and nothing more, so anything else won't be stored, including 304.
This is generally good enough, as 304 doesn't contain response
body and hence doesn't imply much traffic.

> Maxim, this may be obvious to you, but it wasn't to me, and no documentation
> pointed me in this direction. As a suggestion, a small note about the
> significance of setting i-m-s off on upstream servers in such mirroring
> situations in the documentation about proxy_store would be helpful.

1) This is not something I would recommend to do, at least not
something to be done in general.

2) Note that proxy_store is something very basic. It can be used
to do powerful things, but if you are looking for something "ready
to use out of the box" - consider using proxy_cache instead.

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

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

proxy_store help requested

nginx_newbie_too March 08, 2014 05:39PM

Re: proxy_store help requested

nginx_newbie_too March 08, 2014 05:45PM

Re: proxy_store help requested

nginx_newbie_too March 08, 2014 06:21PM

Re: proxy_store help requested

Maxim Dounin March 08, 2014 07:16PM

Re: proxy_store help requested

nginx_newbie_too March 08, 2014 08:51PM

Re: proxy_store help requested

nginx_newbie_too March 09, 2014 10:34PM

Re: proxy_store help requested

Maxim Dounin March 10, 2014 07:08PM

Re: proxy_store help requested

nginx_newbie_too March 11, 2014 12:46PM

Re: proxy_store help requested

Maxim Dounin March 12, 2014 07:50AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 121
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready