tilecache: add cache status to response header
authorGrant Slater <git@firefishy.com>
Wed, 30 Oct 2019 22:46:04 +0000 (22:46 +0000)
committerGrant Slater <git@firefishy.com>
Wed, 30 Oct 2019 22:46:04 +0000 (22:46 +0000)
cookbooks/tilecache/templates/default/nginx_tile.conf.erb

index 98d2839..c1f9956 100644 (file)
@@ -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)