From a304317dc4696c35851f04100e8ab50412dcd774 Mon Sep 17 00:00:00 2001 From: Daniel Kullmann Date: Fri, 3 Jul 2020 12:29:17 +0200 Subject: [PATCH] Tries to prevent caching of data file. --- lib/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/main.js b/lib/main.js index 7c60266..c8dc43c 100644 --- a/lib/main.js +++ b/lib/main.js @@ -146,7 +146,7 @@ window.onload = function() { oElement.style.display = "none"; }); $.ajax({ - "url": "./data.json", + "url": "./data.json?t="+new Date().getTime(), "success": function(oResponse) { oData = oResponse; document.getElementById("now").innerText = oData.now; -- GitLab