From 5be252225817450e7121f99cf15a3619e54a0f93 Mon Sep 17 00:00:00 2001 From: YX Hao Date: Wed, 6 May 2026 18:37:48 +0800 Subject: [PATCH] Don't cache dashboard HTML pages Fix #3181 --- dnscrypt-proxy/monitoring_ui.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dnscrypt-proxy/monitoring_ui.go b/dnscrypt-proxy/monitoring_ui.go index f69ce37be3..059d520b2e 100644 --- a/dnscrypt-proxy/monitoring_ui.go +++ b/dnscrypt-proxy/monitoring_ui.go @@ -1064,8 +1064,9 @@ func (ui *MonitoringUI) handleRoot(w http.ResponseWriter, r *http.Request) { return } - // Serve the main dashboard page - cache for 5 minutes since template is static - setStaticCacheHeaders(w, 300) + // No cache, no heartbeat fetching. You will need to log in again after restarting your browser. + setDynamicCacheHeaders(w) + w.Header().Set("Content-Type", "text/html") w.Write([]byte(MainHTMLTemplate)) }