Fixed: Cache pages static instead of sitemap because of a permission denied error
All checks were successful
Deploy Jekyll site to Pages / build (push) Successful in 4m57s

This commit is contained in:
2025-10-22 21:18:04 +00:00
committed by Gitea
parent ce9b827582
commit 02ce8bd23f

View File

@@ -34,6 +34,16 @@ const urlsToCache = [
BASE_PATH + "assets/game-data/skills.json",
BASE_PATH + "assets/game-data/characters/chase.json",
BASE_PATH + "assets/game-data/characters/carver.json",
/* Pages */
BASE_PATH + "lifepaths.html",
BASE_PATH + "player-guides.html",
BASE_PATH + "player-guides/attributes.html",
BASE_PATH + "player-guides/skills.html",
BASE_PATH + "player-guides/custom-rules/pick-lock.html",
BASE_PATH + "player-guides/custom-rules/quick-hacking.html",
BASE_PATH + "characters",
BASE_PATH + "characters/chase.html",
BASE_PATH + "characters/crash.html",
];
/**
@@ -63,7 +73,7 @@ self.addEventListener("fetch", (event) => {
/**
* Wenn die Startseite geladen wird, lade automatisch alle Seiten aus der Sitemap in den Cache
*/
self.addEventListener("sync", (event) => {
/*self.addEventListener("sync", (event) => {
if (event.tag === "cache-all-pages") {
event.waitUntil(
fetch(SITEMAP_URL)
@@ -81,7 +91,7 @@ self.addEventListener("sync", (event) => {
})
);
}
});
});*/
/**
* Aktivierungs-Event: Löscht alten Cache