From: Grant Slater Date: Wed, 30 Oct 2019 22:46:04 +0000 (+0000) Subject: tilecache: add cache status to response header X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/1aca4d24e609b234bdf9ad4708611d79700c390d?ds=sidebyside tilecache: add cache status to response header --- diff --git a/cookbooks/tilecache/templates/default/nginx_tile.conf.erb b/cookbooks/tilecache/templates/default/nginx_tile.conf.erb index 98d283932..c1f9956c9 100644 --- a/cookbooks/tilecache/templates/default/nginx_tile.conf.erb +++ b/cookbooks/tilecache/templates/default/nginx_tile.conf.erb @@ -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)