Welcome! Log In Create A New Profile

Advanced

Re: nginx-0.7.44

All files from this thread

File Name File Size   Posted by Date  
patch.fastcgi.cache 8.7 KB open | download Igor Sysoev 03/23/2009 Read message
Jérôme Loyet
March 24, 2009 12:29PM
2009/3/23 Igor Sysoev <is@rambler-co.ru>:
> On Mon, Mar 23, 2009 at 10:42:45PM +0800, Delta Yeh wrote:
>
>> How to use the cache feature?
>> What kind of cache does it support?
>
> Here is configuraiton example:
>
> http {
> proxy_cache_path /path/to/cache levels=1:2
> keys_zone=NAME:10m
> inactive=5m clean_time=2h00m;
>
> server {
> location / {
> proxy_pass http://127.0.0.1;
>
> proxy_cache NAME;
>
> proxy_cache_valid 200 302 1h;
> proxy_cache_valid 301 1d;
> proxy_cache_valid any 1m;
>
> proxy_cache_min_uses 1;
>
> proxy_cache_use_stale error timeout invalid_header http_500;
> }
> }
>
> The cache currently ignores backend's Cache-Control, Expires, etc.

hi Igor,

Do I understand correctly the proxy_cache_use_stale directive:

proxy_cache_use_stale error timeout invalid_header http_500;

If cache is still valid {
serve content from cache
} else {
Ask fresh data to the backend
if connection status IS IN (proxy_cache_use_stale parameters) {
serve content from cache
} else {
act as normal
}
}

thx
++ jerome
Subject Author Posted

nginx-0.7.44

Igor Sysoev March 23, 2009 10:00AM

Re: nginx-0.7.44

lhmwzy March 23, 2009 10:09AM

Re: nginx-0.7.44

Jérôme Loyet March 23, 2009 10:59AM

Re: nginx-0.7.44

Jérôme Loyet March 23, 2009 11:12AM

Re: nginx-0.7.44

Igor Sysoev March 23, 2009 11:20AM

Re: nginx-0.7.44

Jérôme Loyet March 23, 2009 11:22AM

Re: nginx-0.7.44

Igor Sysoev March 23, 2009 11:37AM

Re: nginx-0.7.44

Jérôme Loyet March 23, 2009 11:46AM

Re: nginx-0.7.44

Igor Sysoev March 23, 2009 11:55AM

Re: nginx-0.7.44

Jérôme Loyet March 23, 2009 12:24PM

Re: nginx-0.7.44

Igor Sysoev March 23, 2009 12:31PM

Re: nginx-0.7.44

Jérôme Loyet March 23, 2009 02:15PM

Re: nginx-0.7.44

Igor Sysoev March 23, 2009 04:30PM

Re: nginx-0.7.44

Jérôme Loyet March 24, 2009 04:18AM

Re: nginx-0.7.44

Igor Sysoev March 23, 2009 11:13AM

Re: nginx-0.7.44

Kevin Worthington March 23, 2009 11:00AM

Re: nginx-0.7.44

Delta Yeh March 23, 2009 11:02AM

Re: nginx-0.7.44

Igor Sysoev March 23, 2009 11:20AM

RE: nginx-0.7.44

Floren Munteanu March 23, 2009 12:25PM

Re: nginx-0.7.44

Igor Sysoev March 23, 2009 12:30PM

Re: nginx-0.7.44

Anton Yuzhaninov March 23, 2009 12:36PM

Re: nginx-0.7.44

Floren Munteanu March 23, 2009 01:14PM

Re: nginx-0.7.44 Attachments

Igor Sysoev March 23, 2009 01:22PM

Re: nginx-0.7.44

Jérôme Loyet March 24, 2009 12:29PM

Re: nginx-0.7.44

Jérôme Loyet March 24, 2009 12:47PM

Re: nginx-0.7.44

Igor Sysoev March 24, 2009 01:03PM

Re: nginx-0.7.44

Jérôme Loyet March 23, 2009 11:08AM

Re: nginx-0.7.44

Jérôme Loyet March 24, 2009 12:07PM

Re: nginx-0.7.44

Igor Sysoev March 24, 2009 12:12PM

Re: nginx-0.7.44

Igor Sysoev March 25, 2009 01:16PM

Re: nginx-0.7.44

Johan Bergström March 25, 2009 01:36PM

Re: nginx-0.7.44

Igor Sysoev March 26, 2009 02:50AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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