Updated lolisafe.js

Cache control album ZIPs
This commit is contained in:
Bobby Wibowo 2019-01-06 04:14:33 +07:00
parent 2f51954024
commit 874ddba665
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

View File

@ -74,6 +74,12 @@ if (config.cacheControl) {
res.set('Cache-Control', 'no-store')
next()
})
// But do cache album ZIPs
safe.use('/api/album/zip', (req, res, next) => {
setHeaders(res)
next()
})
} else {
if (config.serveFilesWithNode)
safe.use('/', express.static(config.uploads.folder))