I'm trying to use nginx as a reverse cahce for my website which may require people to be logged in. I'm trying to figure out how to configure it so that users that don't have a certain cookie set receive cached pages while others will receive non-cached responses, assuming the cookie is "logmein".