Add no-cache header to force revalidation on page loads

This commit is contained in:
Ian Gulliver
2026-01-03 21:48:23 -08:00
parent 5479ac994d
commit bb4e8464a4

View File

@@ -102,6 +102,8 @@ func main() {
} }
func handleStatic(w http.ResponseWriter, r *http.Request) { func handleStatic(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Cache-Control", "no-cache")
path := r.URL.Path path := r.URL.Path
if path == "/" { if path == "/" {
path = "/index.html" path = "/index.html"