I'm trying to solve an issue with Angular (14) and the service worker, that is constantly fetching some answer in the cache rather than querying from backend api for a set of routes, although these routes are listed in my ngsw-config.json in a dataGroup as shown here:
"name": "data",
"cacheConfig": {
"strategy": "freshness",
"maxAge": "0s",
"maxSize": 10,
"timeout": "1s"
},
"urls": [
...,
"/api/equipments/**"
]
}
with this config, I see that GET /api/equipments/4
for example is fetched from cache. My problem is that the data can be frequently updated, so I need it to be refreshed as often as possible. Shouldn't this configuration make the data to be refreshed as often as possible?