diff --git a/middleware/frontend.go b/middleware/frontend.go
index 551a209..2e08b51 100644
--- a/middleware/frontend.go
+++ b/middleware/frontend.go
@@ -62,6 +62,10 @@ func FrontendFileHandler() gin.HandlerFunc {
 			return
 		}
 
+		if path == "/service-worker.js" {
+			c.Header("Cache-Control", "public, no-cache")
+		}
+
 		// 存在的静态文件
 		fileServer.ServeHTTP(c.Writer, c.Request)
 		c.Abort()