aris
August 29, 2012, 7:04pm
1
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
Posted at Nginx Forum:
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 (sessi
nfn
August 31, 2012, 11:55pm
2
Hello!
On Wed, Aug 29, 2012 at 01:04:13PM -0400, nfn wrote:
and other guests should not see this.
Is there a way to store the page in the cache but before that, remove this
cookie?
Use
fastcgi_hide_header Set-Cookie;
See nginx.org/r/fastcgi_hide_header .
Maxim D.
nfn
September 1, 2012, 1:03am
3
Hello,
No dia Sexta-feira, 31 de Agosto de 2012, Maxim
[email protected] :
fastcgi_ignore_headers Cache-Control Expires Set-Cookie;
Use
fastcgi_hide_header Set-Cookie;
See nginx.org/r/fastcgi_hide_header .
Maxim D.
I can’t use hide_header because It will hide all cookies. I just want to
hide/delete session_id cookie
Any ideas?
Thanks,
Nuno