Failing to cache requests

Andrei lagged at gmail.com
Mon Sep 23 07:25:31 UTC 2019


Thanks for the input!

On Sun, Sep 22, 2019 at 3:07 PM Francis Daly <francis at daoine.org> wrote:

> On Sun, Sep 22, 2019 at 09:37:51AM -0500, Andrei wrote:
>
> Hi there,
>
> > Thanks for the confirmation! Is there a way to selectively ignore only
> > specific "set-cookie"/cookies, versus all "set-cookie" headers to force
> > cache?
>
> Not that I am aware of, for proxy_cache.
>
> > Or even better to remove/strip certain cookies with a regex match?
>
> Not that I am aware of.
>
> If you do find a way, and it happens too late to affect proxy_cache,
> then you can possibly get around that by doing two proxy_pass'es --
> one with caching to another, which strips the Set-Cookie headers that
> you don't want to see after proxy_pass'ing to the "real" upstream.
>
>
> But you may be better off configuring the upstream server not to send
> the Set-Cookie header that you don't want.
>
> That would presumably be more reliable, if it is doable.
>
> Good luck with it,
>
>         f
> --
> Francis Daly        francis at daoine.org
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20190923/8e11f15d/attachment.htm>


More information about the nginx mailing list