proxy-cache refresh

Maxim Dounin mdounin at
Thu Oct 28 19:06:27 MSD 2010


On Thu, Oct 28, 2010 at 09:38:31AM -0400, niwo wrote:

> Hello
> We are using the nginx proxy_cache module to cache big media files - per
> default for 24h.
> Is there a way to tell nginx to check regularly on the backend servers
> if the file still exists or was being updated? 

Not exactly.

Best aproach currently available is to use

proxy_cache_use_stale updating;

and set lower expire time.  This way nginx will re-download file 
from backends periodically, while still serving most of the 
requests from cache.

Maxim Dounin

More information about the nginx mailing list