1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2024-11-25 12:49:51 +01:00

Merge pull request #1098 from wunter8/patch-6

don't cache config.js
This commit is contained in:
Philipp C. Heckel 2024-05-07 21:21:39 -04:00 committed by GitHub
commit 043738a475
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -593,6 +593,7 @@ func (s *Server) handleWebConfig(w http.ResponseWriter, _ *http.Request, _ *visi
return err
}
w.Header().Set("Content-Type", "text/javascript")
w.Header().Set("Cache-Control", "no-cache")
_, err = io.WriteString(w, fmt.Sprintf("// Generated server configuration\nvar config = %s;\n", string(b)))
return err
}