This is an automated email from the ASF dual-hosted git repository. klesh pushed a commit to branch kw-avoid-browser-caching-index in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit 5c0aa7042fe71709473ec171d4cb1d45c1287caa Author: Klesh Wong <[email protected]> AuthorDate: Wed Nov 8 17:03:29 2023 +0800 fix: avoid browser caching index.html --- config-ui/nginx.conf | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/config-ui/nginx.conf b/config-ui/nginx.conf index 67c54bce1..c6e5e7b95 100644 --- a/config-ui/nginx.conf +++ b/config-ui/nginx.conf @@ -6,9 +6,15 @@ server { ${SERVER_CONF} + root /usr/share/nginx/html; + + location = / { + add_header Cache-Control no-cache; + expires 0; + try_files /index.html =404; + } + location / { - root /usr/share/nginx/html; - index index.html; try_files $uri /index.html; }
