Archive: March 28th, 2020

Playing Donnybrook Fair (jig) on mandolin: https://thesession.org/tunes/26 https://www.youtube.com/watch?v=dlAo5x-NUj0

Playing Donnybrook Fair (jig) on mandolin:

https://thesession.org/tunes/26

https://www.youtube.com/watch?v=dlAo5x-NUj0

Donnybrook Fair (jig) on mandolin

Replying to a tweet from @mxbck

Enjoy!

Replying to a tweet from @KatieELambert

I’m so sorry, Katie.

Replying to a tweet from @betterThanMin

They’re both asynchronous actions—using cache and using fetch—and the waitUntil ensures that when one of them is done, the other still carries on. It doesn’t mean that one waits until the other is done.

Replying to a tweet from @betterThanMin

The return part still happens first though. The waitUntil ensures that the service worker doesn’t “hang up” while you’re getting the fresh version from the network, but while that’s happening, the user has been served the cached file.

Replying to a tweet from @betterThanMin

Sure. Fire away.