Skip to content

Commit

Permalink
SUPP0RT-1143: Added cache busting to online check
Browse files Browse the repository at this point in the history
  • Loading branch information
turegjorup committed Jul 13, 2023
1 parent 22681ea commit 3ecc148
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/online-check/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
html {
cursor: none;
}

body {
background-color: #333333;
margin-top: 10%;
Expand Down Expand Up @@ -71,7 +71,7 @@

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

0 comments on commit 3ecc148

Please sign in to comment.