Skip to content

sw-precaching and Routing #136

Closed
Closed
@gauntface

Description

sw-precaching at the moment ONLY caches assets, it doesn't define any routes.

There are a few things to consider:

  1. If it sets up the routes inside the module, that blocks off any possibility of external routes doing the caching.
  2. 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:

  1. Add the routes in sw-precaching.
  2. Add the routes in sw-precaching with opt out in options.
  3. Add a way for routes to match against any cache (i.e. caches.matches() )
  4. Add a way to get the cache name from sw-precaching and configure route for that.

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions