diff --git a/modules/web-map/docker/nginx.conf b/modules/web-map/docker/nginx.conf index 2d31521..53dc61e 100644 --- a/modules/web-map/docker/nginx.conf +++ b/modules/web-map/docker/nginx.conf @@ -42,6 +42,10 @@ http { try_files $uri $uri/ $uri.html /index.html; include mime.types; + + # main.bundle.js and the CSS keep the same name in every version, so make browsers check + # for a new version on every load (unchanged files get a cheap 304, via the ETag) + add_header Cache-Control "no-cache" always; } } }