Welcome! Log In Create A New Profile

Advanced

Re: fastcgi cache bypass empty body

All files from this thread

File Name File Size   Posted by Date  
df3c2d9b53cd7241702f43ecfcdc0596 137 bytes open | download mow 01/06/2012 Read message
António P. P. Almeida
January 06, 2012 06:22AM
On 6 Jan 2012 08h52 WET, anil@saog.net wrote:

> Hi All, currently we are using nginx with fastcgi_cache with php
> backend. For some conditions php returns an empty body (that we can
> not find the cause) but sends some headers and nginx thinks it is
> valid. So it stores the file which results to an empty response for
> upcoming requests.

Perhaps using the embedded Lua module you can capture the response
and, for example, set 'X-Accel-Expires: 0', header for that request or
set a variable that is evaluated by fastcgi_cache_bypass.

then define:

fastcgi_cache_bypass $no_cache;

Check: http://wiki.nginx.org/HttpLuaModule#rewrite_by_lua

--- appa

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

fastcgi cache bypass empty body Attachments

mow January 06, 2012 03:54AM

Re: fastcgi cache bypass empty body

António P. P. Almeida January 06, 2012 06:22AM

Re: fastcgi cache bypass empty body

Maxim Dounin January 08, 2012 07:50AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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