From: Grant Slater Date: Sat, 4 Jan 2020 21:02:40 +0000 (+0000) Subject: tilecache: use stale cache over 404 X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/1b721888b69d136e5b39ff7e6ad227d40f60408a tilecache: use stale cache over 404 --- diff --git a/cookbooks/tilecache/templates/default/nginx_tile.conf.erb b/cookbooks/tilecache/templates/default/nginx_tile.conf.erb index 0fac382a2..db4612bc8 100644 --- a/cookbooks/tilecache/templates/default/nginx_tile.conf.erb +++ b/cookbooks/tilecache/templates/default/nginx_tile.conf.erb @@ -227,7 +227,7 @@ server { proxy_cache_valid 200 1d; proxy_cache_valid 404 15m; # Serve stale cache on errors or if updating - proxy_cache_use_stale error timeout updating http_500 http_503 http_504; + proxy_cache_use_stale error timeout updating http_404 http_500 http_503 http_504; # If in cache as stale, serve stale and update in background proxy_cache_background_update on; # Enable revalidation using If-Modified-Since and If-None-Match for stale items