From 1aca4d24e609b234bdf9ad4708611d79700c390d Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Wed, 30 Oct 2019 22:46:04 +0000 Subject: [PATCH] tilecache: add cache status to response header --- cookbooks/tilecache/templates/default/nginx_tile.conf.erb | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.43.2