X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/245f62a5e463e5009b00d133d99d91c1c8a35d73..336837bd1b1dc0531faa2586a12be50710618ba2:/cookbooks/tilecache/templates/default/nginx_tile.conf.erb diff --git a/cookbooks/tilecache/templates/default/nginx_tile.conf.erb b/cookbooks/tilecache/templates/default/nginx_tile.conf.erb index 98d283932..49cf412ff 100644 --- a/cookbooks/tilecache/templates/default/nginx_tile.conf.erb +++ b/cookbooks/tilecache/templates/default/nginx_tile.conf.erb @@ -164,7 +164,7 @@ server { return 404; } -<% for i in 0..13 do %> +<% for i in 0..14 do %> <% if i == 0 -%> # Default Fallback Location Handler (lowest) location / { @@ -201,6 +201,8 @@ server { # If in cache as stale, serve stale and update in background proxy_cache_background_update on; proxy_cache_min_uses 8; + + add_header X-Nginx-Cache-Status $upstream_cache_status; <% end -%> # Set a QoS cookie if none presented (uses nginx Map)