From 832e7a6729ac5028eda43fe93c9dfe4409f60426 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 21 Apr 2009 07:51:26 +0000 Subject: [PATCH] Improve comments. --- config/nginx.conf | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/config/nginx.conf b/config/nginx.conf index 1da97a6d5..5071a260b 100644 --- a/config/nginx.conf +++ b/config/nginx.conf @@ -157,15 +157,20 @@ http { # Strip asset tags location ~ ^/(images|javascripts|openlayers|stylesheets|user/image)/ { + # Strip asset tags rewrite ^/(.*)/[0-9]+$ /$1; + + # Set expiry to the maximum - the asset tag will change + # when there is a new version expires max; - # Handle Special Case Expiry + # Only cache OpenLayers for seven days though if ($uri ~ ^/openlayers/) { expires 7d; } } - # Handle Special Case Expiry + + # Cache the embedded map page for seven days location ~ ^/export/embed.html$ { expires 7d; } -- 2.43.2