Strip asset tags from public files.

This commit is contained in:
Tom Hughes 2009-04-20 17:09:26 +00:00
parent 4b2f73dff9
commit f05138db0f

View file

@ -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") {