Skip to content

Commit

Permalink
5 min cache timeout for static http content
Browse files Browse the repository at this point in the history
  • Loading branch information
b3nn0 committed Mar 24, 2021
1 parent cde3fad commit 09113e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main/managementinterface.go
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,7 @@ func setJSONHeaders(w http.ResponseWriter) {
}

func defaultServer(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Cache-Control", "max-age=360") // 5 min, so that if user installs update, he will revalidate soon enough
// setNoCache(w)

http.FileServer(http.Dir("/var/www")).ServeHTTP(w, r)
Expand Down

0 comments on commit 09113e1

Please sign in to comment.