From 00cb6ffb1c481e39810580ac2474c5fd1b4ca214 Mon Sep 17 00:00:00 2001 From: tdro Date: Sat, 23 Mar 2024 16:20:51 -0400 Subject: static/js/update: Add default state Handle more drift --- assets/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'assets') diff --git a/assets/js/index.js b/assets/js/index.js index 3a0bdf6..d3ff7bf 100644 --- a/assets/js/index.js +++ b/assets/js/index.js @@ -117,7 +117,7 @@ const remote = request.getResponseHeader("last-modified") || document.lastModified; const modified = Date.parse(remote) > Date.parse(local); const drift = Date.parse(remote) - Date.parse(local); - if (drift < 3000) return; + if (drift < 10000) return; if (remote && modified) { fetch(url, "GET"); indicator.href = url; -- cgit v1.2.3