<div dir="ltr">Thanks for the input!</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Sep 22, 2019 at 3:07 PM Francis Daly <<a href="mailto:francis@daoine.org">francis@daoine.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sun, Sep 22, 2019 at 09:37:51AM -0500, Andrei wrote:<br>
<br>
Hi there,<br>
<br>
> Thanks for the confirmation! Is there a way to selectively ignore only<br>
> specific "set-cookie"/cookies, versus all "set-cookie" headers to force<br>
> cache?<br>
<br>
Not that I am aware of, for proxy_cache.<br>
<br>
> Or even better to remove/strip certain cookies with a regex match?<br>
<br>
Not that I am aware of.<br>
<br>
If you do find a way, and it happens too late to affect proxy_cache,<br>
then you can possibly get around that by doing two proxy_pass'es --<br>
one with caching to another, which strips the Set-Cookie headers that<br>
you don't want to see after proxy_pass'ing to the "real" upstream.<br>
<br>
<br>
But you may be better off configuring the upstream server not to send<br>
the Set-Cookie header that you don't want.<br>
<br>
That would presumably be more reliable, if it is doable.<br>
<br>
Good luck with it,<br>
<br>
        f<br>
-- <br>
Francis Daly        <a href="mailto:francis@daoine.org" target="_blank">francis@daoine.org</a><br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div>