From 5ab2f7b9b2bb39aea8db400b84e435418cb8c6f3 Mon Sep 17 00:00:00 2001 From: Debian Date: Thu, 6 Oct 2022 20:08:58 +0000 Subject: [PATCH] loadConfig with no cache --- owe.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/owe.js b/owe.js index 184a451..b5cfbd3 100644 --- a/owe.js +++ b/owe.js @@ -42,7 +42,7 @@ function loadSentences(alertIfNew = false, increaseUnread = true) { } function loadConfig() { - fetch("./data/config.json").then((response) => { + fetch("./data/config.json", {headers: {"Cache-Control": "no-cache, no-store"}}).then((response) => { return response.text().then((text) => { config_data = JSON.parse(text); setInterval(loadSentences, 5000, ((typeof config_data.notifications !== "undefined") ? config_data.notifications : true));