Change cache control to no-store
This commit is contained in:
parent
c4fe2bf08b
commit
012e8f270f
|
@ -53,7 +53,7 @@ func dirList(w http.ResponseWriter, r *http.Request, f http.File) {
|
|||
tableheader := ""
|
||||
// Disable cache for directory indexes
|
||||
|
||||
w.Header().Set("Cache-Control", "no-cache")
|
||||
w.Header().Set("Cache-Control", "no-store")
|
||||
|
||||
dirs, err := f.Readdir(-1)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue