We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94e728f commit f234692Copy full SHA for f234692
source/_extensions/pwa_service_files/sw.js
@@ -6,18 +6,19 @@ self.addEventListener('install', function(e) {
6
e.waitUntil(
7
caches.open('frc-docs').then(function(cache) {
8
fetch('_static/cache.json')
9
- .then(response => response.json().then(data => cache.addAll(data)))
+ .then(response => response.json().then(data => cache.addAll(data); console.log(cache.keys())))
10
.catch(error => {
11
console.error(error);
12
});
13
})
14
);
15
16
17
+/*
18
self.addEventListener('fetch', function(event) {
19
event.respondWith(
20
caches.match(event.request).then(function(response) {
21
return response || fetch(event.request).catch(error => console.error(error));
22
23
-});
24
+});*/
0 commit comments