Filtering backend set-cookie

Calin Don calin at presslabs.com
Thu Oct 27 12:19:23 UTC 2011


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 at 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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20111027/2263a614/attachment.html>


More information about the nginx mailing list