check that you deployed the service-worker-published.js version. the dev version does no caching.
How to publish a WASM app for offline use
I have a Blazor WASM app in VS 2022 Community v 17.10.1 that I am trying to run offline, but am getting several "failed to load resource" and one "failed to register a Service Worker" exceptions as shown below.
I followed these instructions to make the app WPA (it wasn't setup that way at first). Consistent with the instructions: the wwwroot files are there, including service-worker.js, manifest.json, and icon-512.png; (2) index.html has the required links and script for the manifest and service worker; and (3) the manifest (.json instead of .webmanifest) looks right.
I'm publishing to Azure with the settings shown below. When I run the published app, the icon that let's me install it appears as it should in the address bar and when I run the installed app it works. But when I disable internet access, the installed app throws the exceptions shown below, including a failure to load manifest.json and blazor.boot.json.
Any idea what I'm missing? I can post images of my wwwroot, index.html and manifest if that might help. Thanks for any thought you have.