Slide 28
Slide 28 text
var cache = new Cache(
‘/assets/shell.1.html',
‘/assets/app.1.css',
‘/assets/app.1.js'
);
!
cache.add(‘/api/user.json’);
!
this.caches.set(‘app-v1’, cache);
Tom Ashworth | ServiceWorker & the offline web | 30/01/14
Persisting a cache to the global cache list. This will
make it available across worker restarts.