From: Justin Wind Date: Tue, 12 Apr 2022 22:42:19 +0000 (-0700) Subject: set cache headers on topic info (badges) response X-Git-Tag: v1.3.8^2~6 X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=34854d0e4a422298fb84245c635e56495b54d6d5;p=websub-hub set cache headers on topic info (badges) response --- 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 }); }