Welcome! Log In Create A New Profile

Advanced

Re: fastcgi_cache_bypass and 502 Bad Gateway

Maxim Dounin
February 11, 2011 01:08PM
Hello!

On Fri, Feb 11, 2011 at 12:07:52PM -0500, kaspars wrote:

> [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?

Yes, it's how it should work. But this isn't really how it works
now - due to bug behaviour is undefined if fastcgi_cache_bypass
isn't the same as fastcgi_no_cache (and the same applies to
proxy_cache_bypass/proxy_no_cache and so on).

This is known issue and I believe Igor worked on patching this.
Avoid using different *_cache_bypass/*_no_cache until this is
fixed.

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

fastcgi_cache_bypass and 502 Bad Gateway

kaspars February 10, 2011 07:08AM

Re: fastcgi_cache_bypass and 502 Bad Gateway

kaspars February 11, 2011 08:24AM

Re: fastcgi_cache_bypass and 502 Bad Gateway

Dayo February 11, 2011 10:15AM

Re: fastcgi_cache_bypass and 502 Bad Gateway

kaspars February 11, 2011 11:31AM

Re: fastcgi_cache_bypass and 502 Bad Gateway

Dayo February 11, 2011 11:57AM

Re: fastcgi_cache_bypass and 502 Bad Gateway

kaspars February 11, 2011 12:07PM

Re: fastcgi_cache_bypass and 502 Bad Gateway

Dayo February 11, 2011 12:50PM

Re: fastcgi_cache_bypass and 502 Bad Gateway

Maxim Dounin February 11, 2011 01:08PM

Re: fastcgi_cache_bypass and 502 Bad Gateway

kaspars February 11, 2011 04:19PM

Re: fastcgi_cache_bypass and 502 Bad Gateway

António P. P. Almeida February 11, 2011 04:58PM

Re: fastcgi_cache_bypass and 502 Bad Gateway

Maxim Dounin February 11, 2011 07:10PM

Re: fastcgi_cache_bypass and 502 Bad Gateway

António P. P. Almeida February 11, 2011 07:30PM

Re: fastcgi_cache_bypass and 502 Bad Gateway

Dayo February 12, 2011 04:15AM

Re: fastcgi_cache_bypass and 502 Bad Gateway

kaspars February 13, 2011 09:18AM

Re: fastcgi_cache_bypass and 502 Bad Gateway

António P. P. Almeida February 12, 2011 07:52AM

Re: fastcgi_cache_bypass and 502 Bad Gateway

agentzh February 13, 2011 11:42PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 231
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready