Skipping the proxy cache based on a cookie?
Dayo
nginx-forum at nginx.us
Wed Jan 19 21:44:45 MSK 2011
Hi all
I doesn't seem that "if ($cookie_COOKIE = "") {" is a valid test for the
presence of a cookie as the code in the if statement does not seem to be
run.
I am using ...
[code]
if ($cookie_COOKIE = "") {
add_header Set-Cookie: "hits = 1";
}
[/code]
... but no joy. (I tried the original suggestion first)
Open to further suggestions
Thanks
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,161969,167639#msg-167639
More information about the nginx
mailing list