Welcome! Log In Create A New Profile

Advanced

Re: proxy_cache_bypass and proxy_no_cache

December 10, 2012 05:22AM
One interesting observation

I put this code

location /test {
proxy_pass http://a/;
....
set $dont_cache 1;

if ( $cookie_route ) {
set $dont_cache 0;
}
proxy_cache_bypass $dont_cache;
proxy_no_cache $dont_cache;

}

and it started to dis-honour the trailing slash http://a/ With the end / it does not look for /test but only due to the if block it started to look for it.

Regards
Amod
SubjectAuthorPosted

proxy_cache_bypass and proxy_no_cache

amodpandeyDecember 10, 2012 02:19AM

Re: proxy_cache_bypass and proxy_no_cache

António P. P. AlmeidaDecember 10, 2012 03:32AM

Re: proxy_cache_bypass and proxy_no_cache

amodpandeyDecember 10, 2012 04:02AM

Re: proxy_cache_bypass and proxy_no_cache

Antonio P.P. AlmeidaDecember 10, 2012 04:28AM

Re: proxy_cache_bypass and proxy_no_cache

amodpandeyDecember 10, 2012 04:31AM

Re: proxy_cache_bypass and proxy_no_cache

amodpandeyDecember 10, 2012 05:15AM

Re: proxy_cache_bypass and proxy_no_cache

amodpandeyDecember 10, 2012 05:22AM

Re: proxy_cache_bypass and proxy_no_cache

Igor SysoevDecember 10, 2012 06:24AM

Re: proxy_cache_bypass and proxy_no_cache

Igor SysoevDecember 10, 2012 06:26AM

Re: proxy_cache_bypass and proxy_no_cache

António P. P. AlmeidaDecember 10, 2012 03:56AM

Re: proxy_cache_bypass and proxy_no_cache

Antonio P.P. AlmeidaDecember 10, 2012 09:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 90
Record Number of Users: 5 on November 26, 2014
Record Number of Guests: 173 on November 26, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready