From faa1eeae8f3d73fedbfd5d130cf735b773444c2d Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Mon, 14 Jan 2019 20:33:33 -0800 Subject: [PATCH] Do not cache auto-index pages --- modules/actions/serveAutoIndexPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/actions/serveAutoIndexPage.js b/modules/actions/serveAutoIndexPage.js index 1a444ac..a664003 100644 --- a/modules/actions/serveAutoIndexPage.js +++ b/modules/actions/serveAutoIndexPage.js @@ -41,7 +41,7 @@ export default function serveAutoIndexPage(req, res) { res .set({ - 'Cache-Control': 'public, max-age=14400', // 4 hours + 'Cache-Control': 'no-cache, no-store, must-revalidate', // do not cache 'Cache-Tag': 'auto-index' }) .send(html);