From d50df0f0dbd19e40a605f98ba4c8c921b703f958 Mon Sep 17 00:00:00 2001 From: DQ Date: Mon, 2 Sep 2019 10:13:10 +0800 Subject: [PATCH] Add no-cache to index.html shouldn't cache index.html for access fresh page after upgrade. Signed-off-by: DQ --- make/photon/portal/nginx.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/make/photon/portal/nginx.conf b/make/photon/portal/nginx.conf index 96da5243f..475fa6e6d 100644 --- a/make/photon/portal/nginx.conf +++ b/make/photon/portal/nginx.conf @@ -30,5 +30,9 @@ http { location / { try_files $uri $uri/ /index.html; } + + location = /index.html { + add_header Cache-Control "no-store, no-cache, must-revalidate"; + } } } \ No newline at end of file