From 8b32915a900522057cd5a2eb12acec2107ef8790 Mon Sep 17 00:00:00 2001 From: ybouane Date: Sat, 12 Oct 2024 01:36:07 -0400 Subject: [PATCH] For no-cache when reloading status.json --- static/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/client.js b/static/client.js index e857b37..7e88c1a 100644 --- a/static/client.js +++ b/static/client.js @@ -5,7 +5,7 @@ document.addEventListener("DOMContentLoaded", async () => { let $main = document.querySelector('main'); const refreshStatus = async () => { try { - const response = await fetch('./status.json'); + const response = await fetch('./status.json', {cache: "no-cache"}); if (!response.ok) { throw new Error(`Error fetching status.json: ${response.statusText}`); }