X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/09b3b685397aea927e5a0a67b67d5e778b3441db..1531b1dad652db402fbf1618d059c8533319e312:/cookbooks/imagery/templates/default/nginx_imagery_layer_fragment.conf.erb diff --git a/cookbooks/imagery/templates/default/nginx_imagery_layer_fragment.conf.erb b/cookbooks/imagery/templates/default/nginx_imagery_layer_fragment.conf.erb index d5e4a420f..50b3070c9 100644 --- a/cookbooks/imagery/templates/default/nginx_imagery_layer_fragment.conf.erb +++ b/cookbooks/imagery/templates/default/nginx_imagery_layer_fragment.conf.erb @@ -9,7 +9,7 @@ location ~* "^/layer/<%= @layer %>/(\d+)/(\d+)/(\d+)\.(png|jpg|jpeg)$" { # Caching fastcgi_cache "fastcgi_cache_zone"; - fastcgi_cache_key "<%= @layer %> $request_method $1 $2 $3"; + fastcgi_cache_key "<%= @layer %><%= @revision %> $request_method $1 $2 $3"; fastcgi_cache_lock on; fastcgi_cache_lock_timeout 30s; fastcgi_cache_valid 200 21d;