Maxim, that's what I need. Thanks a lot!by patng323 - Nginx Mailing List - English
Hi, Using NginX as a reverse proxy, I want to cache the response ONLY if the user has NOT logged in, which can be checked by testing the existence of a cookie. First I tried to use "if", but NginX complained that I cannot put a proxy_cache_valid inside an "if": location / { proxy_pass http://www.xyz.com; if ($cookie_login = '') { proxy_cache my-cache; proxy_cache_vby patng323 - Nginx Mailing List - English
Hi, Using NginX as a reverse proxy, I want to cache the response ONLY if the user has NOT logged in, which can be checked by testing the existence of a cookie. First I tried to use "if", but NginX complained that I cannot put a proxy_cache_valid inside an "if": location / { proxy_pass http://www.xyz.com; if ($cookie_login = '') { proxy_cache my-cache;by patng323 - How to...