For the exiting project we are added progressive-web-app , but we are not cached any url or API Call, but API Call going through the Service worker . how to avoid the API call going through the Service worker
API version we are using
service-worker - 11.2.7
http-server - 13.0.2
Angular - 11.2.7
ngsw-config.json configuration
{
"$schema": "./node_modules/@angular/service-worker/config/schema.json",
"index": "/index.html",
"assetGroups": [
{
"name": "app",
"installMode": "prefetch",
"resources": {
"files": [
"/favicon.ico",
"/index.html",
"/manifest.webmanifest",
"/*.css",
"/*.js"
]
}
},
{
"name": "assets",
"installMode": "lazy",
"updateMode": "prefetch",
"resources": {
"files": [
"/assets/**",
"/*.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani)"
]
}
}
]
}
Here is the API Call happening through the Service worker
