WICG/webpackage

Use-case: Service Worker cache population and synchronization

オープン

#107 opened on 2018/01/10

 (2 件のコメント) (3 件のリアクション) (0 人の担当者)Go (124 件のフォーク)github user discovery
feature requesthelp wanted

Repository metrics

Stars
 (1,257 個のスター)
PR merge metrics
 (平均マージ 19h 38m) (30d で 1 merged PR)

説明

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

コントリビューターガイド