Conditional Proxy Caching in Location
igal at lucee.org
Sun Sep 13 22:42:28 UTC 2020
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 handle this?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx