Add no-store cache header for reactions endpoint

This commit is contained in:
Jan-Lukas Else 2023-04-11 16:56:40 +02:00
parent a75fa07f57
commit b5e41b1ceb
1 changed files with 1 additions and 0 deletions

View File

@ -93,6 +93,7 @@ func (a *goBlog) getReactions(w http.ResponseWriter, r *http.Request) {
_ = pw.CloseWithError(json.NewEncoder(pw).Encode(reactions)) _ = pw.CloseWithError(json.NewEncoder(pw).Encode(reactions))
}() }()
w.Header().Set(contentType, contenttype.JSONUTF8) w.Header().Set(contentType, contenttype.JSONUTF8)
w.Header().Set(cacheControl, "no-store")
_ = pr.CloseWithError(a.min.Get().Minify(contenttype.JSON, w, pr)) _ = pr.CloseWithError(a.min.Get().Minify(contenttype.JSON, w, pr))
} }