Browse Source

fix: remove no-store for index.html

JustSong 2 years ago
parent
commit
92c88fa273
1 changed files with 1 additions and 1 deletions
  1. 1 1
      router/web-router.go

+ 1 - 1
router/web-router.go

@@ -16,7 +16,7 @@ func SetWebRouter(router *gin.Engine, buildFS embed.FS, indexPage []byte) {
 	router.Use(middleware.Cache())
 	router.Use(middleware.Cache())
 	router.Use(static.Serve("/", common.EmbedFolder(buildFS, "web/build")))
 	router.Use(static.Serve("/", common.EmbedFolder(buildFS, "web/build")))
 	router.NoRoute(func(c *gin.Context) {
 	router.NoRoute(func(c *gin.Context) {
-		c.Header("Cache-Control", "no-cache, no-store, must-revalidate")
+		c.Header("Cache-Control", "no-cache")
 		c.Data(http.StatusOK, "text/html; charset=utf-8", indexPage)
 		c.Data(http.StatusOK, "text/html; charset=utf-8", indexPage)
 	})
 	})
 }
 }