aboutsummaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorJad <[email protected]>2020-08-09 16:18:18 +0000
committerJad <[email protected]>2020-08-09 16:18:18 +0000
commit5ba2c86092197e01b56cb0266535d33b93f50f64 (patch)
treeedaa0f92e2a57f32a244f200e68d1c160d750558 /index.js
parentfeat: add theme (diff)
downloadcounter-5ba2c86092197e01b56cb0266535d33b93f50f64.tar.xz
counter-5ba2c86092197e01b56cb0266535d33b93f50f64.zip
feat: add message board
Diffstat (limited to 'index.js')
-rw-r--r--index.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/index.js b/index.js
index c46d9fd..7f20e1d 100644
--- a/index.js
+++ b/index.js
@@ -51,6 +51,9 @@ app.get('/get/@:name', async (req, res) => {
})
if (name === 'demo') {
+ res.set({
+ 'cache-control': 'max-age=31536000'
+ })
num = '0123456789'
length = 10