Add Cache-Control for authenticated pages
This commit is contained in:
parent
d5d7525a31
commit
257a777e03
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue