tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
27
pulls
pipelines
add some more logging to service worker
awarm.space
2 years ago
3680afdf
dfad5209
+3
1 changed file
expand all
collapse all
unified
split
public
worker.js
+3
public/worker.js
···
7
7
.match(event.request)
8
8
.then((response) => {
9
9
if (response) {
10
10
+
console.log("cache match");
10
11
return response;
11
12
}
13
13
+
console.log("cache miss");
12
14
return fetch(event.request.clone());
13
15
})
14
16
.catch((error) => {
17
17
+
console.log(error);
15
18
throw error;
16
19
});
17
20
}),