For no-cache when reloading status.json

This commit is contained in:
ybouane 2024-10-12 01:36:07 -04:00
parent 4ee25b38e5
commit 8b32915a90

View file

@ -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}`);
}