]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tilecache/templates/default/nginx_tile.conf.erb
tilecache: Add 1 more zoom to nginx cache
[chef.git] / cookbooks / tilecache / templates / default / nginx_tile.conf.erb
index 98d2839324ae6b024fe7cbe2b754fb4ebc7b6cf5..49cf412ffd8a30df4794b113a69d5e80bc0a0ffa 100644 (file)
@@ -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)