Skip to content

Commit 3ecc148

Browse files
committed
SUPP0RT-1143: Added cache busting to online check
1 parent 22681ea commit 3ecc148

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/online-check/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
html {
1717
cursor: none;
1818
}
19-
19+
2020
body {
2121
background-color: #333333;
2222
margin-top: 10%;
@@ -71,7 +71,7 @@
7171

7272
const checkOnlineStatus = async () => {
7373
try {
74-
const online = await fetch("1pixel.png");
74+
const online = await fetch("1pixel.png?no_cache=" + Date.now());
7575
return online.status >= 200 && online.status < 300; // either true or false
7676
} catch (err) {
7777
return false; // definitely offline

0 commit comments

Comments
 (0)