mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-13 16:06:21 +00:00
Updated lolisafe.js
Cache control album ZIPs
This commit is contained in:
parent
2f51954024
commit
874ddba665
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user