atom feed26 messages in ru.sysoev.nginxRe: Skipping the proxy cache based on...
FromSent OnAttachments
ehudros2Dec 29, 2010 6:14 am 
ehudros2Dec 30, 2010 5:26 am 
ehudros2Jan 2, 2011 4:28 am 
DayoJan 18, 2011 1:33 pm 
António P. P. AlmeidaJan 18, 2011 1:51 pm 
DayoJan 18, 2011 2:17 pm 
DayoJan 19, 2011 10:44 am 
DayoJan 19, 2011 10:45 am 
DayoJan 19, 2011 11:05 am 
DayoJan 19, 2011 11:06 am 
DayoJan 19, 2011 11:57 am 
António P. P. AlmeidaJan 19, 2011 12:10 pm 
DayoJan 19, 2011 12:42 pm 
António P. P. AlmeidaJan 19, 2011 1:01 pm 
DayoJan 19, 2011 1:22 pm 
EugaiaJan 19, 2011 1:26 pm 
António P. P. AlmeidaJan 19, 2011 1:27 pm 
DayoJan 19, 2011 1:48 pm 
DayoJan 19, 2011 2:19 pm 
António P. P. AlmeidaJan 19, 2011 5:20 pm 
agentzhJan 19, 2011 8:05 pm 
DayoJan 20, 2011 12:08 pm 
António P. P. AlmeidaJan 20, 2011 12:29 pm 
DayoJan 21, 2011 12:50 pm 
DayoJan 21, 2011 12:51 pm 
DayoJan 21, 2011 1:17 pm 
Subject:Re: Skipping the proxy cache based on a cookie?
From:António P. P. Almeida (ap@perusio.net)
Date:Jan 20, 2011 12:29:24 pm
List:ru.sysoev.nginx

On 20 Jan 2011 04h05 WET, agen@gmail.com wrote:

On Wed, Jan 19, 2011 at 5:52 AM, António P. P. Almeida <ap@perusio.net> wrote:

Any chance of implementing ... [code] proxy_cache_bypass_empty $cookie_COOKIE; proxy_no_cache_empty $cookie_COOKIE; [/code]

If I understand your question, wouldn't this do the trick?

if ($cookie_COOKIE = "") {  set $cookie_no_cache true; }

Now it works as "usual".

Nginx's "if" is evil and can be even more evil when you use it a bit more. The code snippet above can only work when being put into the "server" block rather than the "location" block :)

Ok. Care to elaborate on that? I think is something that should be explicitly stated in the IfIsEvil wiki page.

Thanks, --- appa