Welcome! Log In Create A New Profile

Advanced

Re: proxy_cache_bypass and proxy_no_cache

António P. P. Almeida
December 10, 2012 03:56AM
Another option is to use an if.

set $dont_cache 0;

if ($cookie_no_cache) {
set $dont_cache 1;
}

--appa

amodpandey <nginx-forum@nginx.us> a écrit :

>I want to proxy_cache responses only with a specific cookie in request.
>
>I thought to use
>
>proxy_cache_bypass ! $cookie_cache;
>proxy_no_cache ! $cookie_cache;
>
>That ( ! ) does not work.
>
>One more question, why we need to have proxy_cache_bypass and proxy_no_cache
>else
>nginx: [warn] "proxy_no_cache" functionality has been changed in 0.8.46, now
>it should be used together with "proxy_cache_bypass"
>
>Help Please!
>
>Regards
>Amod
>
>Posted at Nginx Forum: http://forum.nginx.org/read.php?2,233778,233778#msg-233778
>
>_______________________________________________
>nginx mailing list
>nginx@nginx.org
>http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

proxy_cache_bypass and proxy_no_cache

amodpandey December 10, 2012 02:19AM

Re: proxy_cache_bypass and proxy_no_cache

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

Re: proxy_cache_bypass and proxy_no_cache

amodpandey December 10, 2012 04:02AM

Re: proxy_cache_bypass and proxy_no_cache

Antonio P.P. Almeida December 10, 2012 04:28AM

Re: proxy_cache_bypass and proxy_no_cache

amodpandey December 10, 2012 04:31AM

Re: proxy_cache_bypass and proxy_no_cache

amodpandey December 10, 2012 05:15AM

Re: proxy_cache_bypass and proxy_no_cache

amodpandey December 10, 2012 05:22AM

Re: proxy_cache_bypass and proxy_no_cache

Igor Sysoev December 10, 2012 06:24AM

Re: proxy_cache_bypass and proxy_no_cache

Igor Sysoev December 10, 2012 06:26AM

Re: proxy_cache_bypass and proxy_no_cache

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

Re: proxy_cache_bypass and proxy_no_cache

Antonio P.P. Almeida December 10, 2012 09:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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