Add Cache-Control for authenticated pages

main
Jan Dittberner 2 years ago
parent d5d7525a31
commit 257a777e03

@ -88,6 +88,8 @@ func (app *application) tryAuthenticate(next http.Handler) http.Handler {
return
}
w.Header().Add("Cache-Control", "no-store")
next.ServeHTTP(w, r.WithContext(context.WithValue(r.Context(), ctxUser, user)))
})
}

Loading…
Cancel
Save