I have developed Angular progressive app, which works fine when running on localhost:3004, like if i open in browser and then close the server it works fine with cached data. But when i run it on ip i.e 192.168.33.123:3004 it open and when i close the server it does not works. I also followed complete guide on this link : ServiceWorker
here is progressive app audit when i run in localhost:
here is audit when running on ip 192.168.33.123:3004.
]
I could not figure where is the error. This issue is when i open browser using localhost, In application tab in chrome console, it shows service worker registered. but when i open using ip, then in application tab it does not show any service worker registered.
here if my service worker file
{
"$schema": "./node_modules/@angular/service-worker/config/schema.json",
"index": "/index.html",
"assetGroups": [
{
"name": "app",
"installMode": "prefetch",
"resources": {
"files": [
"/favicon.ico",
"/index.html",
"/*.css",
"/*.js"
]
}
}, {
"name": "assets",
"installMode": "lazy",
"updateMode": "prefetch",
"resources": {
"files": [
"/assets/**",
"/*.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani)"
]
}
}
]
}