Skip to content

🎧 Your Personal Streaming Service

fix(ui): Set Cache-Control: no-cache on index.html - #5766 (#5767)

Andrew Katsikasa5efba9a08e3
diff --git a/server/serve_index.go b/server/serve_index.go
index 13fa4a9ce..a538daf1a 100644
--- a/server/serve_index.go
+++ b/server/serve_index.go
@@ -107,6 +107,7 @@ func serveIndex(ds model.DataStore, fs fs.FS, shareInfo *model.Share) http.Handl
addShareData(r, data, shareInfo)
w.Header().Set("Content-Type", "text/html")
+ w.Header().Set("Cache-Control", "no-store, no-cache, must-revalidate")
err = t.Execute(w, data)
if err != nil {
log.Error(r, "Could not execute `index.html` template", err)