1

I need to set up nginx so that when a timeout occurs attempting to reach the upstream proxy, that it will just return the cached version on disk.

Can someone tell me how, as the docs are a little sparse on information.

2
  • The question is: where this cached version on the disk came from? May 27, 2010 at 15:50
  • 1
    From a previously good request. May 27, 2010 at 16:41

1 Answer 1

1

proxy_cache_use_stale timeout;

to serve stale objects in case the upstream goes timeout and

proxy_connect_timeout 40;

to control the timeout...

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .