You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by mi...@apache.org on 2023/11/08 09:10:59 UTC
(incubator-devlake) branch main updated: fix: avoid browser caching index.html (#6420)
This is an automated email from the ASF dual-hosted git repository.
mintsweet pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new 5509471f3 fix: avoid browser caching index.html (#6420)
5509471f3 is described below
commit 5509471f3fd50e70dd3d7a6165d4a9610f1a004f
Author: Klesh Wong <zh...@merico.dev>
AuthorDate: Wed Nov 8 17:10:52 2023 +0800
fix: avoid browser caching index.html (#6420)
---
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;
}