> set $dont_cache 0; > it. You have to set it at the server level to make it work. set $dont_cache 1; if ($cookie_route) { set $dont_cache 0; } location /test { proxy_pass http://a/; proxy_cache_bypass $dont_cache; proxy_no_cache $dont_cache; } If creates an implicit location. If is evil: http://wiki.nginx.org/IfIsEvil As Igor said above use map and get clear of the if directive quirks. --appa
on 2012-12-10 15:09
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.