mirror of https://github.com/shunfei/cronsun
cache js in browser
parent
8e9b0f9e6b
commit
be64b5ee2b
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue