Closed
Description
sw-precaching at the moment ONLY caches assets, it doesn't define any routes.
There are a few things to consider:
- If it sets up the routes inside the module, that blocks off any possibility of external routes doing the caching.
- If we want external routes to be defined to do this, there is no exposure of the cache name and be default I think caching strategies look in a custom cache name.
Solutions:
- Add the routes in sw-precaching.
- Add the routes in sw-precaching with opt out in options.
- Add a way for routes to match against any cache (i.e. caches.matches() )
- Add a way to get the cache name from sw-precaching and configure route for that.
Metadata
Assignees
Labels
No labels