Strip asset tags from public files.
This commit is contained in:
parent
4b2f73dff9
commit
f05138db0f
1 changed files with 5 additions and 0 deletions
|
@ -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") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue