fastcgi_cache_bypass and 502 Bad Gateway
kaspars
nginx-forum at nginx.us
Fri Feb 11 20:07:52 MSK 2011
[quote]$test will always be equal to 0 as any variable set within the
'if' block is not exposed outside the block AFAIK.[/quote]
No. I am already using this check successfully for the fastcgi_no_cache
rule.
The real problem is with the *fastcgi_cache_bypass*. My understanding is
that if "fastcgi_cache_bypass 1", then Nginx will request a fresh
response from the backend and cache that response for further use where
"fastcgi_cache_bypass 0".
Is that how fastcgi_cache_bypass should work?
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,173795,174194#msg-174194
More information about the nginx
mailing list