From 0633f2c78ec88462c19e7d127d00f09f26ff6652 Mon Sep 17 00:00:00 2001 From: Bobby Date: Thu, 6 Oct 2022 02:40:41 +0700 Subject: [PATCH] chore: temp update client version in dev mode --- lolisafe.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lolisafe.js b/lolisafe.js index 7541e38..500e1b2 100644 --- a/lolisafe.js +++ b/lolisafe.js @@ -256,6 +256,9 @@ safe.use('/api', api) utils.versionStrings = {} if (config.cacheControl) { const versions = require('./src/versions') + if (versions['1'] && utils.devmode) { + versions['1'] = String(Math.ceil(Date.now() / 1000)) + } for (const type in versions) { utils.versionStrings[type] = `?_=${versions[type]}` }