-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathservice-worker.js
More file actions
25 lines (24 loc) · 791 Bytes
/
service-worker.js
File metadata and controls
25 lines (24 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// self.addEventListener('install', function(e) {
// e.waitUntil(
// caches.open('video-store').then(function(cache) {
// return cache.addAll([
// // '/signin/testApp/',
// // '/signin/testApp/index.html',
// // '/signin/testApp/index.js',
// // '/signin/testApp/style.css',
// // '/signin/testApp/images/fox1.jpg',
// // '/signin/testApp/images/fox2.jpg',
// // '/signin/testApp/images/fox3.jpg',
// // '/signin/testApp/images/fox4.jpg'
// ]);
// })
// );
// });
// self.addEventListener('fetch', function(e) {
// console.log(e.request.url);
// e.respondWith(
// caches.match(e.request).then(function(response) {
// return response || fetch(e.request);
// })
// );
// });