# 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
return 404;
}
- # Handle Special Case Expiry
- location ~ ^/openlayers/ {
- expires 7d;
- }
- location ~ ^/export/embed.html$ {
- expires 7d;
- }
- location ~ ^/(images|javascripts|stylesheets)/ {
- expires max;
- }
-
# Send everything else to the web backend unless it exists
# in the rails public tree
location / {