mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-31 07:11:33 +00:00
Updated lolisafe.js
Updated cache control
This commit is contained in:
parent
874ddba665
commit
f166a70d71
@ -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()
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user