I've tried using $upstream_http_set_cookie but it contains only one line, the first cookie.<div><br></div><div>So, if the upstream responds with in this order:</div><div>Set-Cookie: some_cookie=one</div><div>Set-Cookie: another_cookie=two</div>
<div>Set-Cookie: third_cookie=three</div><div><br></div><div>$upstream_http_set_cookie will contain 'some_cookie=one'</div><div><br><div class="gmail_quote">On Thu, Oct 27, 2011 at 14:56, Calin Don <span dir="ltr"><<a href="mailto:calin@presslabs.com">calin@presslabs.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<div><br></div><div>Is there a way to filter the cookies set by backend on a caching frontend? </div><div><br></div>
<div>What I need is to be able to cache on frontend even if some cookies are set. </div><div>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.</div>
<div><br></div><div>I cannot control the backend, that's why I need to do it on frontend.</div>
</blockquote></div><br>
</div>