Welcome! Log In Create A New Profile

Advanced

Re: Filtering backend set-cookie

Calin Don
October 27, 2011 08:20AM
I've tried using $upstream_http_set_cookie but it contains only one line,
the first cookie.

So, if the upstream responds with in this order:
Set-Cookie: some_cookie=one
Set-Cookie: another_cookie=two
Set-Cookie: third_cookie=three

$upstream_http_set_cookie will contain 'some_cookie=one'

On Thu, Oct 27, 2011 at 14:56, Calin Don <calin@presslabs.com> wrote:

> Hi,
>
> Is there a way to filter the cookies set by backend on a caching frontend?
>
> What I need is to be able to cache on frontend even if some cookies are
> set.
> If I do proxy_ignore_headers: Set-Cookie than all cookies will be ignored
> on frontend and page will be cached regardless of what cookie backend sets.
>
> I cannot control the backend, that's why I need to do it on frontend.
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Filtering backend set-cookie

Calin Don October 27, 2011 07:58AM

Re: Filtering backend set-cookie

Calin Don October 27, 2011 08:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 210
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