WICG / WICG/webpackage

Use-case: Service Worker cache population and synchronization

Open
#107 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request help wanted
Dominant language
Go
Stars
1.3k
Forks
125
PR merge metrics
No merged PRs in 30d

Description

If and when browser support for webpackage arrives, batch cache synchronization [1] or cache initialization [2] might be good use-cases, especially in the context of Service Worker. Using some sort of content negotiation mechanism, Service Worker might be able to ask the server for a webpackage that at least contains desired request URL(s). By unpacking the response and populating the cache, it can serve subsequent requests pretty quickly. What will be packed in the response is something that can be negotiated using some means or the server can decide as it does in case of HTTP/2 Server Hints (prefetch).

[1] https://github.com/WICG/BackgroundSync
[2] https://developer.mozilla.org/en-US/docs/Web/API/Cache/addAll

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the linked BackgroundSync and Cache.addAll references, then review how this webpackage project relates to Service Worker cache initialization and synchronization. The issue does not name files, tests, or an implementation entry point, and it does not define a concrete completion condition beyond exploring the proposed use case.

Written by the indexing model from the issue text.

Assessment

Domain
web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.