From cc29fd293123a728a6822757b9712711b0226ddb Mon Sep 17 00:00:00 2001 From: Evert Prants Date: Tue, 5 Feb 2019 19:15:00 +0200 Subject: [PATCH] Set cache for termbin --- applications/highlight-termbin/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/applications/highlight-termbin/index.js b/applications/highlight-termbin/index.js index e7882ca..92345b4 100644 --- a/applications/highlight-termbin/index.js +++ b/applications/highlight-termbin/index.js @@ -37,6 +37,8 @@ async function init () { return res.status(404).end() } + res.header('Cache-Control', 'max-age=' + 7 * 24 * 60 * 60 * 1000) + if (reqRaw) { return res.set('Content-Type', 'text/plain').send(text) }