Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 1.58 KB

README.md

File metadata and controls

18 lines (12 loc) · 1.58 KB

Offline service worker contents

Allowing service workers to provide details about the content of their offline experiences.

See the EXPLAINER for proposed solutions.

Problem

Users have no easy way of finding sites that have full offline experiences when they have no network connection. Many users don’t even have an expectation that offline web experiences exist at all.

The browser could help to promote and manage good offline experiences, but it is limited in the information it has. The browser can identify what URLs have been cached, but it has no way of knowing which URLs are important or what kind of content is available. A registered SW + its cache could be a fully interactive offline experience, an app shell, or a skeleton that only enables push notifications.

Use Cases

With more knowledge about the contents of service workers, browsers could take steps to promote offline sites and content. When offline, a browser could only autocomplete URLs that have meaningful content to show the user. Browsers could also offer an “Offline” page that lists URLs and content that the user can explore, similar to UC browser's offline video section:

Browser collecting offline videos

Transparent SW contents could be used with foreign fetch to create entire ecosystems of offline experiences between collaborating sites.