Skipping the proxy cache based on a cookie?

Dayo nginx-forum at nginx.us
Thu Jan 20 01:19:53 MSK 2011


I throw my hands up in surrender as I just can't get it to return the
cookie.

I have tried a plain vanilla build with no joy.

v0.8.54

The relevant location code is ...

[code]
	location /folder/ {
		if ($http_cookie !~* "COOKIEX=0") {
			add_header Cookie "COOKIEX=1; domain=domain.com; path=/folder/";
		}
		
		# BEGIN Url Rewrites	
                   ...	
		# END Url Rewrites
		
		try_files $uri $uri/ @proxy;
	}
[/code]

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,161969,167714#msg-167714




More information about the nginx mailing list