forked from Maxluli/TinderPokemon
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:
4
sw.js
4
sw.js
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user