+
+ # Strip asset tags
+ location ~ ^/(images|javascripts|openlayers|stylesheets|user/image)/ {
+ rewrite ^/(.*)/[0-9]+$ /$1;
+ expires max;
+
+ # Handle Special Case Expiry
+ if ($uri ~ ^/openlayers/) {
+ expires 7d;
+ }
+ }
+ # Handle Special Case Expiry
+ location ~ ^/export/embed.html$ {
+ expires 7d;
+ }
+
+ # Include fastcgi configuration
+ include /etc/nginx/fastcgi_params;
+ fastcgi_param REQUEST_URI $uri;
+