mirror of https://github.com/jlelse/GoBlog
Add no-store cache header for reactions endpoint
This commit is contained in:
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))
|
_ = 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))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue