Skipping the proxy cache based on a cookie?

Dayo nginx-forum at
Thu Jan 20 23:08:38 MSK 2011

Thanks agentzh.

The Lua code you gave works and does what I need here.

Still would be great to have an option like ...

proxy_cache_bypass_empty $var;
proxy_no_cache_empty $var;

... in the main proxy module though.

Anyway, solved at least.

Thanks again.

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

More information about the nginx mailing list