Welcome! Log In Create A New Profile

Advanced

Re: fastcgi_cache_bypass and 502 Bad Gateway

February 11, 2011 11:31AM
> AFAIK, the '$donot_cache ' you set here
> will not contain anything outside the if block.

You are right, I forgot to put "set $donot_cache = 0;" right before the if block, but it doesn't seem to be the problem.

Everything is fine regarding the availability of those variables, and I verified it by adding them as an HTTP header to all responses.

> In your case, why not just use 'fastcgi_no_cache
> $cookie_COOKIE-1$cookie_COOKIE-2$cookie_COOKIE-3'
> and skip the whole 'if' test?

Because those cookie names change -- they have random numbers appended to them, so I need to do a regex check for their prefixes.

I'll be sure to post an update if I find something.
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: 290
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