Welcome! Log In Create A New Profile

Advanced

Re: nginx-0.7.53

All files from this thread

File Name File Size   Posted by Date  
patch.0.7.53.1.cache_ignore_headers 2.9 KB open | download Jérôme Loyet 04/28/2009 Read message
April 29, 2009 12:15AM
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@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/
Subject Author Posted

nginx-0.7.53

Igor Sysoev April 27, 2009 08:08AM

Re: nginx-0.7.53

Joe Bofh April 27, 2009 09:18PM

Re: nginx-0.7.53

Maxim Dounin April 27, 2009 09:32PM

Re: nginx-0.7.53

mike April 27, 2009 09:49PM

Re: nginx-0.7.53

Igor Sysoev April 28, 2009 12:25AM

Re: nginx-0.7.53

mike April 28, 2009 12:56AM

Re: nginx-0.7.53

Igor Sysoev April 28, 2009 01:14AM

Re: nginx-0.7.53

mike April 28, 2009 01:37AM

Re: nginx-0.7.53

Chris Wan April 28, 2009 02:40AM

Re: nginx-0.7.53

Joe Bofh April 28, 2009 03:31AM

Re: nginx-0.7.53

mike April 28, 2009 03:42AM

Re: nginx-0.7.53

Maxim Dounin April 28, 2009 04:23AM

Re: nginx-0.7.53

mike April 28, 2009 11:16AM

Re: nginx-0.7.53

Igor Sysoev April 28, 2009 11:18AM

Re: nginx-0.7.53

mike April 28, 2009 11:32AM

Re: nginx-0.7.53

Igor Sysoev April 28, 2009 11:42AM

Re: nginx-0.7.53

Jérôme Loyet April 28, 2009 05:09PM

Re: nginx-0.7.53 Attachments

Jérôme Loyet April 28, 2009 08:03PM

Re: nginx-0.7.53

Igor Sysoev April 29, 2009 12:15AM

Re: nginx-0.7.53

Jérôme Loyet April 29, 2009 03:46AM

Re: nginx-0.7.53

Jauder Ho April 29, 2009 07:15PM

Re: nginx-0.7.53

mike April 29, 2009 08:36PM

Re: nginx-0.7.53

Jauder Ho April 29, 2009 08:48PM

Re: nginx-0.7.53

mike April 29, 2009 09:07PM

Re: nginx-0.7.53

Igor Sysoev April 28, 2009 04:53AM

Re: nginx-0.7.53

Igor Sysoev April 28, 2009 04:54AM

Re: nginx-0.7.53

Chris Wan April 28, 2009 05:19AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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