Skip to content

Commit f234692

Browse files
committed
log content in cache
1 parent 94e728f commit f234692

File tree

1 file changed

+3
-2
lines changed
  • source/_extensions/pwa_service_files

1 file changed

+3
-2
lines changed

source/_extensions/pwa_service_files/sw.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,19 @@ self.addEventListener('install', function(e) {
66
e.waitUntil(
77
caches.open('frc-docs').then(function(cache) {
88
fetch('_static/cache.json')
9-
.then(response => response.json().then(data => cache.addAll(data)))
9+
.then(response => response.json().then(data => cache.addAll(data); console.log(cache.keys())))
1010
.catch(error => {
1111
console.error(error);
1212
});
1313
})
1414
);
1515
});
1616

17+
/*
1718
self.addEventListener('fetch', function(event) {
1819
event.respondWith(
1920
caches.match(event.request).then(function(response) {
2021
return response || fetch(event.request).catch(error => console.error(error));
2122
})
2223
);
23-
});
24+
});*/

0 commit comments

Comments
 (0)