Welcome! Log In Create A New Profile

Advanced

Hide/Delete a cookie when stored in cache

nfn
August 29, 2012 01:04PM
Hello,

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 cookie?

Thanks

Nuno
Subject Author Posted

Hide/Delete a cookie when stored in cache

nfn August 29, 2012 01:04PM

Re: Hide/Delete a cookie when stored in cache

Maxim Dounin August 31, 2012 05:56PM

Re: Hide/Delete a cookie when stored in cache

Nuno Neves August 31, 2012 07:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 61
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready