Service Worker Precaching (Webpack)

Open the console to see the script output and inspect the source.

In this demo, the source modules import un-revisioned URLs, but the service worker has precached revisioned versions of each. This demo uses webpack and the workbox-webpack-plugin to build the service worker.

Source Code: https://github.com/philipwalton/import-maps-caching-demos