Actually THIS is the last commit... DONT FORGET TO EDIT THE MANIFEST AAAAND THE SERVICE WORKER REGISTRATION IN THE INDEX.HTML

This commit is contained in:
maxluli
2022-10-21 20:48:57 +02:00
parent c47ba48e0f
commit 279526ed49
3 changed files with 6 additions and 6 deletions

4
sw.js
View File

@@ -21,7 +21,7 @@ self.addEventListener("fetch", event => {
);
});
/*
function cache(request, response) {
if (response.type === "error" || response.type === "opaque") {
return Promise.resolve(); // do not put in cache network errors
@@ -31,7 +31,7 @@ function cache(request, response) {
.open(CACHE_NAME)
.then(cache => cache.put(request, response.clone()));
}
*/
const CACHE_NAME = "V2";