From f05138db0f0fef5419e225419436fb13e20bf28b Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 20 Apr 2009 17:09:26 +0000 Subject: [PATCH] Strip asset tags from public files. --- config/nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/nginx.conf b/config/nginx.conf index b9055c2d3..bd43f4c35 100644 --- a/config/nginx.conf +++ b/config/nginx.conf @@ -148,6 +148,11 @@ http { rewrite ^/(0\.[0-9]+)/(.*)$ /api/$1/$2; } + # Strip asset tags + location ~ ^/(images|javascripts|openlayers|stylesheets)/ { + rewrite ^/(.*)/[0-9]+$ /$1; + } + # Handle tiles@home requests location /api/ { if ($http_user_agent ~ "^tilesAtHome") { -- 2.43.2