From b48821e92ec7beb06fe924c1315267c545ee3276 Mon Sep 17 00:00:00 2001 From: HF Date: Tue, 12 Dec 2023 18:57:40 +0100 Subject: [PATCH] no-cache on http requests depending on cookies (etag reevaluation still works) --- src/routes/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/routes/index.js b/src/routes/index.js index 9f6dc918..d6dfa22d 100644 --- a/src/routes/index.js +++ b/src/routes/index.js @@ -74,7 +74,7 @@ router.get('/globe', (req, res) => { const { html, etag: globeEtag } = generateGlobePage(req); res.set({ - 'Cache-Control': `private, max-age=${15 * 60}`, // seconds + 'Cache-Control': `private, no-cache`, // seconds ETag: globeEtag, }); @@ -101,7 +101,7 @@ router.use( const { html, etag: winEtag } = generatePopUpPage(req); res.set({ - 'Cache-Control': `private, max-age=${15 * 60}`, // seconds + 'Cache-Control': `private, no-cache`, // seconds ETag: winEtag, }); @@ -122,7 +122,7 @@ router.get('/', (req, res) => { const { html, csp, etag: mainEtag } = generateMainPage(req); res.set({ - 'Cache-Control': `private, max-age=${15 * 60}`, // seconds + 'Cache-Control': `private, no-cache`, // seconds 'Content-Security-Policy': csp, ETag: mainEtag, });