re: PWAs that download like apps 🗜️ VIEW POST

TOP OF THREAD FULL DISCUSSION
re: From eyeballing your code, that promise passed to the install event's waitUntil() seems like it might resolve too early (it's not waiting for the u...
 

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.

 

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.

code of conduct - report abuse