Set cache for termbin
This commit is contained in:
parent
32395683c3
commit
cc29fd2931
@ -37,6 +37,8 @@ async function init () {
|
|||||||
return res.status(404).end()
|
return res.status(404).end()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
res.header('Cache-Control', 'max-age=' + 7 * 24 * 60 * 60 * 1000)
|
||||||
|
|
||||||
if (reqRaw) {
|
if (reqRaw) {
|
||||||
return res.set('Content-Type', 'text/plain').send(text)
|
return res.set('Content-Type', 'text/plain').send(text)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user