workbox README

The project's README from github.com/GoogleChrome/workbox. As one markdown file: README.md.

Welcome to Workbox!

Workbox is a collection of JavaScript libraries for Progressive Web Apps.

Documentation

Maintenance update

Workbox is a powerful library originally developed by members of Chrome's developer relations team to facilitate the creation of Progressive Web Apps and to improve the offline experience of web applications. It offers a suite of tools and strategies for efficiently caching and serving web assets, managing service workers, and handling offline scenarios. Workbox simplifies the implementation of common caching patterns and provides developers with a comprehensive toolkit to build robust, resilient web applications. From now on, Chrome's Aurora team will be the new owners of Workbox.

Contributing

Development happens in the open on GitHub. We're thankful to the community for contributing any improvements.

Please read the guide to contributing for information about setting up your environment and other requirements prior to filing any pull requests.

License

MIT. See LICENSE for details.

workbox (GoogleChrome/workbox)

Searching Database…

这是做什么的?Workbox 是一组面向渐进式 Web 应用(PWA)的 JavaScript 库:它提供缓存网页资源、管理 Service Worker 以及处理离线场景的工具和策略。
它是一个大而全的库,还是一组独立的库?它是一整套工具,而不是单个大杂烩:由多个 JavaScript 库加上配套工具组成,涵盖缓存、资源分发、Service Worker 管理和离线处理——你只需要用到与自己应用相关的部分。
怎么把它加到我的网页应用里?按照 README 中链接的文档里的入门指南操作。如果你想参与 Workbox 本身的开发,这个仓库是一个开发工作区,使用 Gulp 构建,并要求 Node.js 20+。
它还在维护吗,还是已经被弃坑了?项目仍然活跃,不过负责方换了:Workbox 最初由 Chrome 的开发者关系团队打造,今后由 Chrome 的 Aurora 团队接管,开发在 GitHub 上公开进行。
这是我的网页要加载的东西,还是服务器端的东西?属于浏览器端:它围绕 Service Worker 构建,而 Service Worker 是支撑渐进式 Web 应用的浏览器技术,所以它属于你网页应用的前端部分,而不是部署在服务器上的东西。
商用项目可以免费使用吗?可以——Workbox 采用 MIT 许可证发布,可以免费使用,包括商业用途。
为什么用 Workbox,而不是自己手写一个 Service Worker?因为它帮你把难搞的部分都处理好了:Workbox 简化了常见缓存模式的实现,并提供一套完整的工具,可以高效地缓存和分发网页资源,让你不用事事亲力亲为,就能获得稳健可靠的离线体验。
哪些应用最能从中受益?需要在网络不稳定或断网时仍能正常运行的网页应用:Workbox 正是针对这种离线体验设计的,它会缓存你的资源并通过 Service Worker 提供这些资源,让应用始终保持可用。
Size
26.5 MB
Stars
13K
Age
10y
Commits · 90 Days