Hide/Delete a cookie when stored in cache

nfn nginx-forum at nginx.us
Wed Aug 29 17:04:13 UTC 2012


I'm caching pages with nginx using the following rules:

fastcgi_no_cache $cookie_member_id $is_args
fastcgi_cache_bypass $cookie_member_id $is_args
fastcgi_ignore_headers Cache-Control Expires Set-Cookie;

Now, there is a cookie (session_id) that need to be passed to backed, but it
shouldn't be stored in the cache, since it's the session_id of a guest user
and other guests should not see this.

Is there a way to store the page in the cache but before that, remove this



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

More information about the nginx mailing list