diff --git a/frontend/nginx-config b/frontend/nginx-config index 5571632..a9336a0 100644 --- a/frontend/nginx-config +++ b/frontend/nginx-config @@ -19,7 +19,7 @@ server { proxy_set_header Connection "upgrade"; proxy_http_version 1.1; } - location ~ (/api/|/auth/|/docs/|/assets/lib/|/assets/swagger.json) { + location ~ ^(/api/|/auth/|/docs/|/assets/lib/|/assets/swagger.json) { proxy_pass http://api; include mime.types; @@ -35,4 +35,8 @@ server { proxy_set_header Host $http_host; proxy_http_version 1.1; } + location ~ ^(/assets/|/static/) { + root /var/www/maproulette; + add_header Cache-Control "public, no-transform"; + } }