Cache Fixes
Gitea Pages / Gitea-Pages (push) Successful in 3s

This commit is contained in:
2024-01-31 03:57:48 +00:00
parent eaa9aab86a
commit cd90c92330
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -79,8 +79,7 @@ function ATC() {
document.getElementById("header").style.left = "10px"
}
function onload() {
liveATCPreload()
function onload() {
var xhr = new XMLHttpRequest();
xhr.open("GET", "https://aa.local:5000/alive", true);
xhr.setRequestHeader('Content-Type', 'application/json');
@@ -89,6 +88,7 @@ function onload() {
document.getElementById("loading").style.display = "none"
document.getElementById("header").style.display = "block"
document.getElementById("main_tab").style.display = "block"
liveATCPreload()
updateSettings()
setInterval(updateSettings, 10000)
} else if (xhr.readyState == 4) {
+1 -1
View File
@@ -1,4 +1,4 @@
const cacheName = "cache2"; // Change value to force update
const cacheName = "cache3"; // Change value to force update
self.addEventListener("install", event => {
// Kick out the old service worker