Jérôme Loyet jerome at
Wed Apr 29 11:46:27 MSD 2009

2009/4/29 Igor Sysoev <is at>:
> 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> 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.

OK, I'll use my patch the time this feature is realeased. I juste
wanted to be sure that in the near future all my architecture with
nginx will still be valid :)

Thx a lot igor
++ Jerome

More information about the nginx mailing list