Skipping the proxy cache based on a cookie?

Dayo nginx-forum at
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

I am using ...

if ($cookie_COOKIE = "") {
add_header Set-Cookie: "hits = 1";

... but no joy. (I tried the original suggestion first)

Open to further suggestions


Posted at Nginx Forum:,161969,167639#msg-167639

More information about the nginx mailing list