Add must-revalidate cache-control header on challenge mjs

This commit is contained in:
WeebDataHoarder
2025-04-04 13:13:46 +02:00
parent db8666a8b0
commit c23cea260c

View File

@@ -348,6 +348,7 @@ func NewState(p policy.Policy, settings StateSettings) (state *State, err error)
params, _ := json.Marshal(p.Parameters)
//TODO: move this to http.go as a template
w.Header().Set("Cache-Control", "no-cache, no-store, must-revalidate")
w.Header().Set("Content-Type", "text/javascript; charset=utf-8")
w.WriteHeader(http.StatusOK)