diff --git a/rootfs/etc/nginx/conf.d/default.conf b/rootfs/etc/nginx/conf.d/default.conf index 30290e3ac..f179c4483 100644 --- a/rootfs/etc/nginx/conf.d/default.conf +++ b/rootfs/etc/nginx/conf.d/default.conf @@ -14,8 +14,19 @@ server { log_not_found off; } - try_files $uri $uri/ /index.html; - + location / { + try_files $uri $uri/ @fallback; + } + + location @fallback { + add_header Cache-Control "no-cache, no-store, must-revalidate" always; + rewrite ^.*$ /index.html last; + } + + location ~* \.html$ { + add_header Cache-Control "no-cache, no-store, must-revalidate" always; + } + set $auth_basic off; if (-f /auth/.htpasswd) { set $auth_basic "Restricted Content";