mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-14 00:16: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')
|
res.set('Cache-Control', 'no-store')
|
||||||
next()
|
next()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// But do cache album ZIPs
|
||||||
|
safe.use('/api/album/zip', (req, res, next) => {
|
||||||
|
setHeaders(res)
|
||||||
|
next()
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
if (config.serveFilesWithNode)
|
if (config.serveFilesWithNode)
|
||||||
safe.use('/', express.static(config.uploads.folder))
|
safe.use('/', express.static(config.uploads.folder))
|
||||||
|
Loading…
Reference in New Issue
Block a user