Skip to content

Open Infrastructure Map, a view of infrastructure data in OpenStreetMap

Set expiry on whole assets dir

Russ Garrett365ac528b876
diff --git a/web/nginx-site.conf b/web/nginx-site.conf
index 5c2218b..a7e58cb 100644
--- a/web/nginx-site.conf
+++ b/web/nginx-site.conf
@@ -9,16 +9,12 @@ server {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
}
-
- location ~ \.js$ {
- expires 365d;
- }
- location ~ \.css$ {
+ location ~ \.pbf$ {
expires 365d;
}
- location ~ \.pbf$ {
+ location /assets {
expires 365d;
}