Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- self.addEventListener('install', function(e) {
- console.log('[ServiceWorker] Install');
- e.waitUntil(
- caches.open(cacheFileName)
- .then(function(cache) {
- console.log('[ServiceWorker] Caching app shell');
- return cache.addAll(filesToCache);
- })
- );
- });
Add Comment
Please, Sign In to add comment