Set cache for termbin

This commit is contained in:
Evert Prants 2019-02-05 19:15:00 +02:00
parent 32395683c3
commit cc29fd2931
Signed by: evert
GPG Key ID: 1688DA83D222D0B5

View File

@ -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)
}