Skip to content

Commit 541a059

Browse files
authored
Don't cache dashboard HTML pages (#3183)
Fix #3181
1 parent 412c5cb commit 541a059

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

dnscrypt-proxy/monitoring_ui.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,8 +1064,9 @@ func (ui *MonitoringUI) handleRoot(w http.ResponseWriter, r *http.Request) {
10641064
return
10651065
}
10661066

1067-
// Serve the main dashboard page - cache for 5 minutes since template is static
1068-
setStaticCacheHeaders(w, 300)
1067+
// No cache, no heartbeat fetching. You will need to log in again after restarting your browser.
1068+
setDynamicCacheHeaders(w)
1069+
10691070
w.Header().Set("Content-Type", "text/html")
10701071
w.Write([]byte(MainHTMLTemplate))
10711072
}

0 commit comments

Comments
 (0)