]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tilecache/templates/default/nginx_tile.conf.erb
tilecache: use stale cache over 404
[chef.git] / cookbooks / tilecache / templates / default / nginx_tile.conf.erb
index 0fac382a2a12bd58cdde6449f1e27dd3db285369..db4612bc87f16833715d950efb57029277c27adc 100644 (file)
@@ -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_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
       # 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