Re: slow nginx behavior when using as reverse proxy for https

2020-09-13 Thread Maxim Dounin
Hello! On Sat, Sep 12, 2020 at 12:34:15PM +0530, Bhuvan Gupta wrote: [...] > http { > keepalive_timeout 65; > server { > listen 80; > server_name localhost; > location /session { > proxy_pass https://hookb.in/VGQ3wdGGzKSE22bwzRdP; > prox

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