Welcome! Log In Create A New Profile

Advanced

Re: Failing to cache requests

Andrei
September 22, 2019 10:40AM
Hello,

Thanks for the confirmation! Is there a way to selectively ignore only
specific "set-cookie"/cookies, versus all "set-cookie" headers to force
cache? Or even better to remove/strip certain cookies with a regex match? I
imagine this way I can strip the cookies that aren't relevant, it would
cache on it's own, and if some new cookie appears it will avoid caching the
request. I believe this might be doable using Lua, but I haven't had any
luck :(


On Sun, Sep 22, 2019 at 7:26 AM Francis Daly <francis@daoine.org> wrote:

> On Sat, Sep 21, 2019 at 01:02:57PM -0500, Andrei wrote:
>
> Hi there,
>
> > I'm having a hard time understanding why these requests aren't being
> cached
> > for 10 minutes? Is it the cookies?
>
> Yes.
>
> http://nginx.org/r/proxy_cache_valid
>
> """
> If the header includes the “Set-Cookie” field, such a response will not be
> cached.
> """
>
> > If so how can I avoid this and force cache?
>
> """
> Processing of one or more of these response header fields can be disabled
> using the proxy_ignore_headers directive.
> """
>
> 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: 125
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready