"Bringing service workers to Google Search" by Jeff Posnick https://web.dev/google-search-sw/
The complexity required to get Service Workers working in a modern web app is kind of mind-boggling. Google Search is something I'd think of as a pretty "simple" web app, and yet here they are using every trick in the book: navigation preload, postMessage, navigator.storage, cache headers, etc.