Add no-store cache header for reactions endpoint

master
Jan-Lukas Else 2 months ago
parent a75fa07f57
commit b5e41b1ceb

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

Loading…
Cancel
Save