-
Notifications
You must be signed in to change notification settings - Fork 26.6k
Closed as not planned
Closed as not planned
Copy link
Labels
area: service-workerIssues related to the @angular/service-worker packageIssues related to the @angular/service-worker package
Milestone
Description
Which @angular/* package(s) are the source of the bug?
service-worker
Is this a regression?
Yes
Description
When I'm configuring my dataGroups for caching in ngsw-config.json, if I specify the full path, only then the caching works. Otherwise, It doesn't cache.
This works:
"dataGroups": [{ "name": "getRequestCache", "urls": [ "myapp/ai_models", "myapp/ai_models/parameters" ], "cacheConfig": { "strategy": "freshness", "maxSize": 1000, "maxAge": "3d", "timeout": "10s" } } ]
This doesn't work:
"dataGroups": [{ "name": "getRequestCache", "urls": [ "/**", "/**/**", "/**/**/**" ], "cacheConfig": { "strategy": "freshness", "maxSize": 1000, "maxAge": "3d", "timeout": "10s" } } ]
Is there any way to not write each path specifically and assign a general path, so that everything gets cached?
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in (run ng version
)
No response
Anything else?
No response
Metadata
Metadata
Assignees
Labels
area: service-workerIssues related to the @angular/service-worker packageIssues related to the @angular/service-worker package