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