Welcome! Log In Create A New Profile

Advanced

Re: fastcgi_cache replication?

Maxim Dounin
November 05, 2010 08:42AM
Hello!

On Fri, Nov 05, 2010 at 01:21:55PM +0100, Dennis Jacobfeuerborn wrote:

> On 11/05/2010 12:17 PM, Maxim Dounin wrote:
> >Hello!
> >
> >On Fri, Nov 05, 2010 at 12:49:52AM -0400, marcusadolfsson wrote:
> >
> >[...]
> >
> >>1) PHP files that contain a redirect with header("Location: new-url")
> >>and immediately exited will not redirect properly when served from the
> >>cache, due to PHP appending a Content-type. If print some text between
> >>the header and exit it works fine.
> >>
> >>Does not work:
> >>^A^F^@^A^@?^D^@Status: 301 Moved Permanently^M
> >>Location:
> >>http://store.smartphoneexperts.com/motorola-s9-hd-bluetooth-stereo-headphones/9A115A4142.htm?d=1152^M
> >>Content-type: text/html
> >>
> >>Works:
> >>KEY:
> >>httpwww.n95depot.com/motorola-s9-hd-bluetooth-stereo-headphones/9A115A4142.htm
> >>^A^F^@^A^@?^D^@Status: 301 Moved Permanently^M
> >>Location:
> >>http://store.smartphoneexperts.com/motorola-s9-hd-bluetooth-stereo-headphones/9A115A4142.htm?d=1152^M
> >>Content-type: text/html^M
> >>^M
> >>Redirecting
> >
> >Looks like known problem with caching of 0-sized responses, see
> >here for more info and patches:
> >
> >http://nginx.org/pipermail/nginx-devel/2010-January/000100.html
>
> The messages referenced in there are almost a year old. Haven't
> these patches been included in the main source since then?

No.

Maxim Dounin

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

fastcgi_cache replication?

marcusadolfsson November 05, 2010 12:49AM

Re: fastcgi_cache replication?

Maxim Dounin November 05, 2010 07:20AM

Re: fastcgi_cache replication?

Dennis Jacobfeuerborn November 05, 2010 08:26AM

Re: fastcgi_cache replication?

Maxim Dounin November 05, 2010 08:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 92
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