Welcome! Log In Create A New Profile

Advanced

Re: nginx cache seems to swallow Set-Cookie

September 06, 2010 10:46AM
Maxim Dounin Wrote:
-------------------------------------------------------
> In 0.7.67 nginx strips Set-Cookie headers by
> default on all
> responses served with proxy_cache switched on.
ARRGHHH!!!! This is not documented in the changelog and I was going crazy on why my apps which had been working perfectly fine suddenly stopped working on upgrading to 0.7.67.
> You may change
> this with proxy_pass_header directive (note that
> this will cause
> *cached* responses to return Set-Cookie header as
> well,
ARRGHHH!!!!
> you have
> to make sure your backend doesn't return personal
> cookies on
> cacheable responses).
>
> Note that in 0.8.44 behaviour was changed to
> something considered
> more natural. As of 0.8.44 nginx no longer caches
> responses with
> Set-Cookie header and doesn't strip this header
> with cache turned
> on (unless you instruct it to do so with
> proxy_hide_header and
> proxy_ignore_headers).
A far more rational approach ... hope to see this in the 0.7 branch quickly (0.8.x is a not doable for me)as this undocumented change has essentially made 0.7.67 unusable.
I need to roll back and give up the proxy no cache use I upgraded for.
Subject Author Posted

nginx cache seems to swallow Set-Cookie

pertl September 02, 2010 09:02AM

Re: nginx cache seems to swallow Set-Cookie

Maxim Dounin September 02, 2010 09:20AM

Re: nginx cache seems to swallow Set-Cookie

pertl September 02, 2010 10:27AM

Re: nginx cache seems to swallow Set-Cookie

Maxim Dounin September 02, 2010 10:54AM

Re: nginx cache seems to swallow Set-Cookie

Igor Sysoev September 02, 2010 11:12AM

Re: nginx cache seems to swallow Set-Cookie

pertl September 02, 2010 11:14AM

Re: nginx cache seems to swallow Set-Cookie

Dayo September 06, 2010 10:46AM

Re: nginx cache seems to swallow Set-Cookie

mschipperheyn January 13, 2011 04:52PM

Re: nginx cache seems to swallow Set-Cookie

Maxim Dounin September 06, 2010 11:42AM

Re: nginx cache seems to swallow Set-Cookie

Dayo September 06, 2010 11:46AM

Re: nginx cache seems to swallow Set-Cookie

Maxim Dounin January 13, 2011 05:24PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 247
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready