From 1b721888b69d136e5b39ff7e6ad227d40f60408a Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Sat, 4 Jan 2020 21:02:40 +0000 Subject: [PATCH] tilecache: use stale cache over 404 --- cookbooks/tilecache/templates/default/nginx_tile.conf.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.43.2