Skipping the proxy cache based on a cookie?

ehudros2 nginx-forum at
Wed Dec 29 17:15:05 MSK 2010

Hi everyone,
I'm looking into setting up nginx as a proxy cache. I was wondering if
someone can elaborate a bit about ways to bypass the cache
in certain requests. For example, I'd like every new user to go to the
backend server once in order for some cookies to be written.
On further requests I'd like to serve the user with a cached copy of the
How can I set a mechanism that bypasses the cache if a cookie with a
certain name does/does not exist?


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

More information about the nginx mailing list