X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/ee949071d88592f9ade92a39862f68920217f115..488f7f4b704eba87d5232a3070f50fbf86049959:/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 fc0b9e394..4146da174 100644 --- a/cookbooks/imagery/templates/default/nginx_imagery_layer_fragment.conf.erb +++ b/cookbooks/imagery/templates/default/nginx_imagery_layer_fragment.conf.erb @@ -16,7 +16,14 @@ location ~* "^/layer/<%= @layer %>/(\d+)/(\d+)/(\d+)\.(png|jpg|jpeg)$" { fastcgi_cache_valid 200 21d; fastcgi_cache_use_stale error timeout updating http_500 http_503; + # Do not GZIP tiles gzip off; + + # Add HTTP Cache-Control + Expires Headers + expires 7d; + + # Allow CORS requests + add_header 'Access-Control-Allow-Origin' '*'; } <% if @root_layer -%>