Updated lolisafe.js

Updated cache control
This commit is contained in:
Bobby Wibowo 2019-01-06 04:16:19 +07:00
parent 874ddba665
commit f166a70d71
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

View File

@ -69,8 +69,8 @@ if (config.cacheControl) {
safe.use('/', express.static('./public', { setHeaders }))
// Do NOT cache /api and /a routes
safe.use(['/api', '/a'], (req, res, next) => {
// Do NOT cache dynamic routes
safe.use(['/a', '/api', '/nojs'], (req, res, next) => {
res.set('Cache-Control', 'no-store')
next()
})