Welcome! Log In Create A New Profile

Advanced

Re: Failing to cache requests

Andrei
September 23, 2019 03:26AM
Thanks for the input!

On Sun, Sep 22, 2019 at 3:07 PM Francis Daly <francis@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@daoine.org
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Failing to cache requests

Andrei September 21, 2019 02:04PM

Re: Failing to cache requests

Francis Daly September 22, 2019 08:28AM

Re: Failing to cache requests

Andrei September 22, 2019 10:40AM

Re: Failing to cache requests

Francis Daly September 22, 2019 04:08PM

Re: Failing to cache requests

Andrei September 23, 2019 03:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 59
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready