# Fastcgi\_cache\_bypass still not working?

**URL:** <https://www.ruby-forum.com/t/fastcgi-cache-bypass-still-not-working/204753>\
**Category:** NGINX\
**Created:** [March 20, 2011, 8:00pm UTC](https://www.ruby-forum.com/t/fastcgi-cache-bypass-still-not-working/204753 "2011-03-20T20:00:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [March 20, 2011, 8:00pm UTC](https://www.ruby-forum.com/t/fastcgi-cache-bypass-still-not-working/204753/1 "2011-03-20T20:00:25Z")

</div>

I just wanted to know if there are any updates regarding the corrupted  
response headers:

> **[Re: proxy\_cache\_bypass with ssi caches template](https://forum.nginx.org/read.php?2,165196,165238#msg-165238)**
>
> Hi everyone, I've been struggling with this for some time now trying to drop varnish in favor for nginx. Server: nginx/0.8.54 quick peek on problem - SSI on; proxy\_cache\_bypass caches backend response as regular html page with HTTP/1.1 200 OK inside,...

I am trying to use fastcgi\_cache\_bypass to request a fresh response from  
the PHP-FPM backend and store it in cache when $http\_nocache is set.

I can’t use fastcgi\_no\_cache because I want the response to be cached  
for all future requests when $http\_nocache isn’t set.

Any updates on whether fastcgi\_cache\_bypass is supposed to work are  
really appreciated!  
Thanks!

Kaspars

Posted at Nginx Forum:

> **[fastcgi\_cache\_bypass still not working?](https://forum.nginx.org/read.php?2,184217,184217#msg-184217)**
>
> I just wanted to know if there are any updates regarding the corrupted response headers: http://forum.nginx.org/read.php?2,165196,165238#msg-165238 I am trying to use fastcgi\_cache\_bypass to request a fresh response from the PHP-FPM backend and store...

---

<div class="post-metadata">

**Author:** ![kaspars](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/57b2e6/32.png) [@kaspars](https://www.ruby-forum.com/u/kaspars)\
**Post date:** [March 20, 2011, 8:16pm UTC](https://www.ruby-forum.com/t/fastcgi-cache-bypass-still-not-working/204753/2 "2011-03-20T20:16:04Z")

</div>

can anybody help me? I don’t know what this site 404 not found is all  
about.

Posted at Nginx Forum:

> **[Re: fastcgi\_cache\_bypass still not working?](https://forum.nginx.org/read.php?2,184217,184221#msg-184221)**
>
> I just wanted to know if there are any updates regarding the corrupted response headers: http://forum.nginx.org/read.php?2,165196,165238#msg-165238 I am trying to use fastcgi\_cache\_bypass to request a fresh response from the PHP-FPM backend and store...

---

<div class="post-metadata">

**Author:** ![kaspars](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/57b2e6/32.png) [@kaspars](https://www.ruby-forum.com/u/kaspars)\
**Post date:** [March 20, 2011, 8:24pm UTC](https://www.ruby-forum.com/t/fastcgi-cache-bypass-still-not-working/204753/3 "2011-03-20T20:24:12Z")

</div>

As there has been no new releases in the intervening period, I think the  
answer is obvious.

As a work around, it may be possible to use 3rd modules like echo and  
proxy\_purge to clear the cache before fulfilling the request whenever  
$nocache is set so that a fresh copy is cached afterwards.

Never tried it before but looking at the docs, I’ll think it should be  
within their range of capabilities.

Posted at Nginx Forum:

> **[Re: fastcgi\_cache\_bypass still not working?](https://forum.nginx.org/read.php?2,184217,184223#msg-184223)**
>
> I just wanted to know if there are any updates regarding the corrupted response headers: http://forum.nginx.org/read.php?2,165196,165238#msg-165238 I am trying to use fastcgi\_cache\_bypass to request a fresh response from the PHP-FPM backend and store...
