imagery: allow client caching of tiles
authorGrant Slater <git@firefishy.com>
Wed, 1 Jun 2016 22:01:38 +0000 (23:01 +0100)
committerGrant Slater <git@firefishy.com>
Wed, 1 Jun 2016 22:01:38 +0000 (23:01 +0100)
cookbooks/imagery/templates/default/nginx_imagery_layer_fragment.conf.erb

index fc0b9e3943d6f640d7ca5bdc475022b1a1c801bf..548d0f3c90944b93a1d488c36ca8d5818a3830fc 100644 (file)
@@ -17,6 +17,7 @@ location ~* "^/layer/<%= @layer %>/(\d+)/(\d+)/(\d+)\.(png|jpg|jpeg)$" {
   fastcgi_cache_use_stale error timeout updating http_500 http_503;
 
   gzip off;
+  expires 7d;
 }
 
 <% if @root_layer -%>