11 lines
318 B
JavaScript
11 lines
318 B
JavaScript
|
self.addEventListener('install', function(event) {
|
||
|
// registering service worker...
|
||
|
})
|
||
|
|
||
|
self.addEventListener('fetch', function(event) {
|
||
|
// intercepting requests to check for the file or data in the cache
|
||
|
})
|
||
|
|
||
|
self.addEventListener('activate', function(event) {
|
||
|
// service worker activated!
|
||
|
})
|