]> git.openstreetmap.org Git - rails.git/commitdiff
Improve comments.
authorTom Hughes <tom@compton.nu>
Tue, 21 Apr 2009 07:51:26 +0000 (07:51 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 21 Apr 2009 07:51:26 +0000 (07:51 +0000)
config/nginx.conf

index 1da97a6d549cbc69187f46f108ff6c223f084a64..5071a260b1fa3b0b88bf08414107d1406462c53c 100644 (file)
@@ -157,15 +157,20 @@ http {
  
         # Strip asset tags
         location ~ ^/(images|javascripts|openlayers|stylesheets|user/image)/ {
  
         # Strip asset tags
         location ~ ^/(images|javascripts|openlayers|stylesheets|user/image)/ {
+            # Strip asset tags
             rewrite ^/(.*)/[0-9]+$ /$1;
             rewrite ^/(.*)/[0-9]+$ /$1;
+
+            # Set expiry to the maximum - the asset tag will change
+            # when there is a new version
             expires max;
 
             expires max;
 
-            # Handle Special Case Expiry
+            # Only cache OpenLayers for seven days though
             if ($uri ~ ^/openlayers/) {
                 expires 7d;
             }
         }
             if ($uri ~ ^/openlayers/) {
                 expires 7d;
             }
         }
-        # Handle Special Case Expiry
+
+        # Cache the embedded map page for seven days
         location ~ ^/export/embed.html$ {
             expires 7d;
         }
         location ~ ^/export/embed.html$ {
             expires 7d;
         }