Hi,
I've been trying to run a simple PWA example using Angular v19 following the steps in Angular website (https://angular.dev/ecosystem/service-workers/getting-started).
I run it locally in production mode
ng serve --configuration production
I can install the app, but I can't use it offline and I noticed that almost nothing is cached!
ngsw-config.json looks like this:
{
"name": "app",
"installMode": "prefetch",
"resources": {
"files": [
"/favicon.ico",
"/index.csr.html",
"/index.html",
"/manifest.webmanifest",
"/*.css",
"/*.js"
]
}
}
Service worker is running but no file in "Cash storage" from Chrome DevTool.
Can someone give some hints where to debug or what could be the possible issue?