From b5e41b1cebe0479af707d0cb57978dc226dfe644 Mon Sep 17 00:00:00 2001 From: Jan-Lukas Else Date: Tue, 11 Apr 2023 16:56:40 +0200 Subject: [PATCH] Add no-store cache header for reactions endpoint --- reactions.go | 1 + 1 file changed, 1 insertion(+) diff --git a/reactions.go b/reactions.go index 25dad76..ff048b9 100644 --- a/reactions.go +++ b/reactions.go @@ -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)) }