
Blazor WASM can be configured as a Progressive Web App (PWA), enabling offline support, installability, and background sync — without App Store distribution.
dotnet new blazorwasm --pwa -o MyPwaAppwwwroot/manifest.json — app name, icons, start URL, display modewwwroot/service-worker.js — base service workerwwwroot/service-worker.published.js — production service worker with pre-cachingThe production service worker pre-caches all app assets at install time. Subsequent visits load entirely from cache — no network required.
When you publish a new version, the service worker detects the change and prompts the user to refresh. Handle this in service-worker.published.js.
Reference:
TaskLoco™ — The Sticky Note GOAT