| From | Sent On | Attachments |
|---|---|---|
| ehudros2 | Dec 29, 2010 6:14 am | |
| ehudros2 | Dec 30, 2010 5:26 am | |
| ehudros2 | Jan 2, 2011 4:28 am | |
| Dayo | Jan 18, 2011 1:33 pm | |
| António P. P. Almeida | Jan 18, 2011 1:51 pm | |
| Dayo | Jan 18, 2011 2:17 pm | |
| Dayo | Jan 19, 2011 10:44 am | |
| Dayo | Jan 19, 2011 10:45 am | |
| Dayo | Jan 19, 2011 11:05 am | |
| Dayo | Jan 19, 2011 11:06 am | |
| Dayo | Jan 19, 2011 11:57 am | |
| António P. P. Almeida | Jan 19, 2011 12:10 pm | |
| Dayo | Jan 19, 2011 12:42 pm | |
| António P. P. Almeida | Jan 19, 2011 1:01 pm | |
| Dayo | Jan 19, 2011 1:22 pm | |
| Eugaia | Jan 19, 2011 1:26 pm | |
| António P. P. Almeida | Jan 19, 2011 1:27 pm | |
| Dayo | Jan 19, 2011 1:48 pm | |
| Dayo | Jan 19, 2011 2:19 pm | |
| António P. P. Almeida | Jan 19, 2011 5:20 pm | |
| agentzh | Jan 19, 2011 8:05 pm | |
| Dayo | Jan 20, 2011 12:08 pm | |
| António P. P. Almeida | Jan 20, 2011 12:29 pm | |
| Dayo | Jan 21, 2011 12:50 pm | |
| Dayo | Jan 21, 2011 12:51 pm | |
| Dayo | Jan 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
_______________________________________________ nginx mailing list ngi...@nginx.org http://nginx.org/mailman/listinfo/nginx





