
Playing Donnybrook Fair (jig) on mandolin:
Playing Donnybrook Fair (jig) on mandolin:
Enjoy!
I’m so sorry, Katie.
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.
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.
Sure. Fire away.