DEV Community

Discussion on: PWAs that download like apps 🗜️

Collapse
 
samthor profile image
Sam Thorogood • Edited

The call to untar in this case is actually totally synchronous so all the callbacks arrive before the async handler resolves. I modified the library which did use a Web Worker... anyway, the callback is fairly misleading- I'll fix it up.

Collapse
 
jeffposnick profile image
Jeff Posnick

Gotcha about the callback. But the cache.put() part could definitely fail asynchronously, which is not uncommon if you're, for instance, out of storage quota for your origin.