From 2e8961b164f4afc51bc380815d9b5804f7737a1c Mon Sep 17 00:00:00 2001 From: Jeremy Penner Date: Mon, 25 Dec 2023 15:48:09 -0500 Subject: [PATCH] always refresh .json indexes, even if cached --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 9d2feec..a6e4c9b 100644 --- a/index.js +++ b/index.js @@ -550,7 +550,7 @@ const displayFile = async (filename, container) => { } const displayList = async (indexFile, containerId) => { - const response = await fetch(indexFile) + const response = await fetch(indexFile, { cache: "no-cache" }) const filenames = await response.json() const container = document.getElementById(containerId) for (const filename of filenames) {