Compare commits
No commits in common. "a5feae79424dca16ceb77eb472b700018089cd14" and "adcf9534b4cbbdb0fef71cbdb400752036ddcd57" have entirely different histories.
a5feae7942
...
adcf9534b4
3 changed files with 30 additions and 0 deletions
30
sw.js
Normal file
30
sw.js
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
//"use strict";
|
||||
//
|
||||
//// used so I can prompt updates to the service worker
|
||||
//const version = "22-01-2025";
|
||||
//
|
||||
//const cache = new Cache();
|
||||
//
|
||||
//self.addEventListener("install", (event) => {
|
||||
// // can't add /static/* due to demos living there
|
||||
// cache.addAll([
|
||||
// "/",
|
||||
// "/index.html",
|
||||
// "/static/css/*",
|
||||
// "/static/js/*",
|
||||
// "/static/images/*",
|
||||
// "/static/video/*"
|
||||
// ]);
|
||||
//});
|
||||
//
|
||||
//async function handleCache(event) {
|
||||
// const cache_value = await cache.match(event.request);
|
||||
// if (cache_value === undefined) {
|
||||
// return fetch(event.request);
|
||||
// }
|
||||
// return cache_value;
|
||||
//}
|
||||
//
|
||||
//self.addEventListener("fetch", async (event) => {
|
||||
// event.respondWith(handleCache(event));
|
||||
//});
|
||||
Loading…
Reference in a new issue