nginx-0.7.53

Igor Sysoev is at rambler-co.ru
Wed Apr 29 08:15:38 MSD 2009


On Wed, Apr 29, 2009 at 02:03:06AM +0200, J?r?me Loyet wrote:

> Le 28 avril 2009 23:09, J?r?me Loyet <jerome at loyet.net> a ?crit :
> > Hi Igor,
> >
> > since 0.7.48 and the fact that headers like Expires or Cache-Control
> > are take into account ... I'm not able to cache everything. If the
> > backend set a Expires header in the past, then the page is never
> > cached. Is there a way to make it work like this ?
> >
> > Thanks
> > ++ jerome
> >
> Hi igor,
> 
> I made a patch which add two new directives:
> proxy_cache_ignore_headers and fastcgi_cache_ignore_headers. By
> default, they are set to off and everything works as before. When set
> to on, pages are cached even if Expires or Cache-Control said not to.
> 
> I need to cache pages even if the backend said not to because I don't
> have access to the backend code and no one can :(
> 
> The patch is attached. I've tested it with proxy but not with fastcgi.
> As the patch is simple, it should not be a problem.
> 
> Hope it would help.

Thank you for the patch, however, I'm going to implement more generic
directive proxy/fastcgi_ignore_header to ignore as well X-Accel-Redirect,
X-Accel-Expires, etc.


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list