fix: add no-cache
option to service worker file
This commit is contained in:
parent
b8bc5bed13
commit
350954911e
1 changed files with 4 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue