Skip to content

SW Sample: Caching of Selective Resources #32

Closed
@jeffposnick

Description

@jeffposnick

It should demonstrate basic registration, and then an onfetch handler that selectively caches responses based on multiple criteria:

  • Request URL pattern (e.g. only cache URLs hosted on example.com)
  • Response MIME type (e.g. only cache image/* resposnes). Subsequent requests for the same URL are served from the cache.
  • Any other ideas?

Until the native Caches API is available, it should use https://github.com/coonsta/cache-polyfill

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions