]> git.openstreetmap.org Git - chef.git/commitdiff
tilecache: nginx strip query parameters
authorGrant Slater <git@firefishy.com>
Fri, 30 Dec 2016 19:55:44 +0000 (19:55 +0000)
committerGrant Slater <git@firefishy.com>
Fri, 30 Dec 2016 19:55:44 +0000 (19:55 +0000)
cookbooks/tilecache/templates/default/nginx_tile_ssl.conf.erb

index 14a13a0e73e798c4cd8cff5358f320967f7ef98b..6f3340a510342f8183a17becd0b33ad1fef94120 100644 (file)
@@ -88,9 +88,12 @@ server {
 
       # Allow Higher Traffic Rate from Approved User-Agents which do not support cookies (uses nginx Map)
       if ($approved_scraper) {
-        set $limit_rate 16384;
+        set $limit_rate 32768;
       }
 
+      # Strip any ?query parameters from urls
+      set $args '';
+
       # Allow cache purging headers only from select User-Agents (uses nginx Map)
       proxy_set_header Cache-Control $limit_http_cache_control;
       proxy_set_header Pragma $limit_http_pragma;