<div dir="ltr"><div>Hello,</div><div><br></div><div>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.</div><div><br></div><div>I know that "if" is evil as it creates a new location scope.</div><div><br></div><div>What's the best way to handle this?</div><div><br></div><div>Thanks,</div><div><br></div><div>Igal</div><div><br></div></div>