cache js in browser

pull/109/head
QLeelulu 2018-10-09 19:27:10 +08:00
parent 8e9b0f9e6b
commit be64b5ee2b
1 changed files with 2 additions and 2 deletions

View File

@ -148,8 +148,8 @@ func (s *embeddedFileServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
} }
fp += s.IndexFile fp += s.IndexFile
w.Header().Set("Cache-Control", "no-cache, no-store, must-revalidate") // w.Header().Set("Cache-Control", "no-cache, no-store, must-revalidate")
w.Header().Set("Expires", "0") // w.Header().Set("Expires", "0")
b, err = Asset(fp) b, err = Asset(fp)
if err == nil { if err == nil {