projects
/
websub-hub
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f63eee
)
set cache headers on topic info (badges) response
author
Justin Wind
<justin.wind+git@gmail.com>
Tue, 12 Apr 2022 22:42:19 +0000
(15:42 -0700)
committer
Justin Wind
<justin.wind+git@gmail.com>
Tue, 12 Apr 2022 22:42:19 +0000
(15:42 -0700)
src/manager.js
patch
|
blob
|
history
diff --git
a/src/manager.js
b/src/manager.js
index c570671d94ada2bad567fc02f5598d923d90b04b..9d4a282c2aac17864d3e330ba4e655cd424493fc 100644
(file)
--- 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 });
}