mirror of
https://github.com/cloudreve/cloudreve.git
synced 2025-10-28 02:56:17 +08:00
fix: add no-cache option to service worker file
This commit is contained in:
@ -62,6 +62,10 @@ func FrontendFileHandler() gin.HandlerFunc {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if path == "/service-worker.js" {
|
||||||
|
c.Header("Cache-Control", "public, no-cache")
|
||||||
|
}
|
||||||
|
|
||||||
// 存在的静态文件
|
// 存在的静态文件
|
||||||
fileServer.ServeHTTP(c.Writer, c.Request)
|
fileServer.ServeHTTP(c.Writer, c.Request)
|
||||||
c.Abort()
|
c.Abort()
|
||||||
|
|||||||
Reference in New Issue
Block a user