From 34854d0e4a422298fb84245c635e56495b54d6d5 Mon Sep 17 00:00:00 2001 From: Justin Wind Date: Tue, 12 Apr 2022 15:42:19 -0700 Subject: [PATCH] set cache headers on topic info (badges) response --- src/manager.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/manager.js b/src/manager.js index c570671..9d4a282 100644 --- a/src/manager.js +++ b/src/manager.js @@ -543,7 +543,10 @@ class Manager { ctx.count = count.count; }); - res.end(this.infoContent(ctx)); + const content = this.infoContent(ctx); + res.setHeader(Enum.Header.ETag, common.generateETag(undefined, undefined, content)); + res.setHeader(Enum.Header.CacheControl, 'no-cache'); + res.end(content); this.logger.info(_scope, 'finished', { ctx }); } -- 2.45.2