]> git.openstreetmap.org Git - chef.git/commitdiff
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 98d2839324ae6b024fe7cbe2b754fb4ebc7b6cf5..c1f9956c9c693dbd2faea5c1ae53f745adc3dd65 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)