From 874ddba66577cb8a3e05a92a64f16134a4fd8f56 Mon Sep 17 00:00:00 2001 From: Bobby Wibowo Date: Sun, 6 Jan 2019 04:14:33 +0700 Subject: [PATCH] Updated lolisafe.js Cache control album ZIPs --- lolisafe.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lolisafe.js b/lolisafe.js index df6a73b..e58c2dd 100644 --- a/lolisafe.js +++ b/lolisafe.js @@ -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))