Improve comments.

This commit is contained in:
Tom Hughes 2009-04-21 07:51:26 +00:00
parent 1f399ffd85
commit 832e7a6729

View file

@ -157,15 +157,20 @@ http {
# Strip asset tags # Strip asset tags
location ~ ^/(images|javascripts|openlayers|stylesheets|user/image)/ { 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/) { if ($uri ~ ^/openlayers/) {
expires 7d; expires 7d;
} }
} }
# Handle Special Case Expiry
# Cache the embedded map page for seven days
location ~ ^/export/embed.html$ { location ~ ^/export/embed.html$ {
expires 7d; expires 7d;
} }