RE: Conditional Proxy Caching in Location

2020-09-17 Thread Igal Sapir
Thank you, Francis. That sounds like a good plan. Pardon the new thread but I was subscribed in Digest Mode and couldn't reply directly. Igal On Sun, Sep 13, 2020 at 03:42:28PM -0700, Igal Sapir wrote: Hi there, >* I have a variable that shows if a certain cookie exists in the Request, *>* e

Re: Conditional Proxy Caching in Location

2020-09-14 Thread Francis Daly
On Sun, Sep 13, 2020 at 03:42:28PM -0700, Igal Sapir wrote: Hi there, > I have a variable that shows if a certain cookie exists in the Request, > e.g. $req_has_somecookie, and I want to be able to use proxy_cache only for > specific URIs, e.g. /slow-page/ if the variable is 0. > > I know that "i

Conditional Proxy Caching in Location

2020-09-13 Thread Igal Sapir
Hello, I have a variable that shows if a certain cookie exists in the Request, e.g. $req_has_somecookie, and I want to be able to use proxy_cache only for specific URIs, e.g. /slow-page/ if the variable is 0. I know that "if" is evil as it creates a new location scope. What's the best way to han