Title: PWA  (渐进式Web应用)
Author: Weston Ruter
Published: <strong>2018 年 7 月 12 日</strong>
Last modified: 2025 年 4 月 10 日

---

搜索插件

![](https://ps.w.org/pwa/assets/banner-772x250.png?rev=2272148)

![](https://ps.w.org/pwa/assets/icon.svg?rev=1908485)

# PWA (渐进式Web应用)

 作者：[Weston Ruter](https://profiles.wordpress.org/westonruter/)

[下载](https://downloads.wordpress.org/plugin/pwa.0.8.2.zip)

 * [详情](https://cn.wordpress.org/plugins/pwa/#description)
 * [评价](https://cn.wordpress.org/plugins/pwa/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/pwa/#developers)

 [支持](https://wordpress.org/support/plugin/pwa/)

## 描述

>  Progressive Web Apps are user experiences that have the reach of the web, and
> are:
>  * [可靠](https://developers.google.com/web/progressive-web-apps/#reliable) – 
>    即使在不确定的网络条件下，也能立即加载并且从不显示 downasaur。
>  * [Fast](https://developers.google.com/web/progressive-web-apps/#fast) – 通过
>    丝滑流畅的动画和无卡顿的滚动快速响应用户交互。
>  * [Engaging](https://developers.google.com/web/progressive-web-apps/#engaging)
>    感觉就像设备上的自然应用程序，具有身临其境的用户体验。
> This new level of quality allows Progressive Web Apps to earn a place on the user’s
> home screen.

继续阅读有关 Google [渐进式网络应用](https://web.dev/progressive-web-apps/) (PWA)
的更多信息。

通常，PWA 取决于以下可用技术：

 * [服务工作者](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API)
 * [Web App 程序清单](https://developer.mozilla.org/en-US/docs/Web/Manifest)
 * [HTTPS](https://en.wikipedia.org/wiki/HTTPS)

This plugin serves as a place to implement support for these in WordPress with the
intention of being proposed for core merge, piece by piece. Case in point, the HTTPS
functionality from this plugin has largely been made part of Core: [Improved HTTPS detection and migration in WordPress 5.7](https://make.wordpress.org/core/2021/02/22/improved-https-detection-and-migration-in-wordpress-5-7/).

此功能插件_不_旨在淘汰将 WordPress 网站变成 PWA 的其他插件和主题。 相反，该插件旨
在为这些主题和插件提供 PWA 构建块和协调机制，以免重新发明轮子，也不会相互冲突。 
例如，实现 app shell 模型的主题应该能够扩展核心服务工作者，而提供推送通知的插件应该
能够做到这一点。 主题和插件不再需要各自创建一个 Service Worker，这本身就存在问题，
因为一次只能有一个 Service Worker 处于活动状态：只有一个 Service Worker 可以获胜。
如果您正在开发包含 service worker 的插件或主题，请考虑依赖此 PWA 插件，或者至少仅
使用内置实现作为 PWA 插件不可用时的后备。

在 0.6 之前的版本中，默认情况下没有添加缓存策略。唯一的 Service Worker 行为是在客户
端连接关闭或站点关闭时提供脱机模板，并在服务器返回 500 Internal Server Error 时提供
错误页面。从 0.6 开始，管理员的阅读设置屏幕上有一个新的“离线浏览”切换。默认情况下
它是禁用的，但启用时会注册[网络优先](https://web.dev/offline-cookbook/#network-falling-back-to-cache)
缓存策略用于导航，以便在访问以前访问的页面时不会显示离线页面。网络优先策略也用于
来自主题、插件和 WordPress 核心的资产。此外，上传的图像使用 [stale-while-revalidate](https://web.dev/offline-cookbook/#stale-while-revalidate)
策略提供。有关这些更改的所有详细信息，请参阅[拉取请求](https://github.com/GoogleChromeLabs/pwa-wp/pull/338)。

用于插件的文档可以找到在 [GitHub project Wiki](https://github.com/GoogleChromeLabs/pwa-wp/wiki).

**此插件的开发在[在 GitHub 上](https://github.com/GoogleChromeLabs/pwa-wp)完成,欢迎
拉取请求。 请先查看[问题](https://github.com/GoogleChromeLabs/pwa-wp/issues)然后
再转到[插件论坛](https://wordpress.org/support/ plugin/pwa)。**

## 常见问题

请参阅 GitHub 项目 wiki 上的[常见问题](https://github.com/GoogleChromeLabs/pwa-wp/wiki/FAQ)。
没有看到您问题的答案？ 请[搜索支持论坛](https://wordpress.org/support/plugin/pwa/)，
看看是否有人问过您的问题。 否则，请[打开新的支持主题](https://wordpress.org/support/plugin/pwa/#new-post)。

## 评价

![](https://secure.gravatar.com/avatar/750fb6d260658a46cf06e4f00889af04eca7230364c4407fab13be73d32688c5?
s=60&d=retro&r=g)

### 󠀁[Good plugin and awesome support](https://wordpress.org/support/topic/this-is-the-way-to-go-2/)󠁿

 [shawnpita](https://profiles.wordpress.org/shawnpita/) 2025 年 1 月 15 日

this has been one of the most help full plugins in my work

![](https://secure.gravatar.com/avatar/ed61b204aa7f7fc959d3bb09fb4430080df505e804fd5a7b39eaa5b0f4844569?
s=60&d=retro&r=g)

### 󠀁[works well](https://wordpress.org/support/topic/works-well-2931/)󠁿

 [nnnln](https://profiles.wordpress.org/nnnln/) 2024 年 5 月 20 日

I didn’t notice much of a difference when I tried it about 2 years ago, but now 
it seems to be working well. In my case

![](https://secure.gravatar.com/avatar/1ce858de930d27111535c1409ab25a52aaaf0f4be0b84a24a1c803bdee07f96c?
s=60&d=retro&r=g)

### 󠀁[Does exactly what’s needed](https://wordpress.org/support/topic/does-exactly-whats-needed-7/)󠁿

 [Rolf Allard van Hagen](https://profiles.wordpress.org/ravanh/) 2024 年 4 月 6 
日

It just works out of the box. No frills, no thunder, it just does exactly what is
should do. And responsive support to boot. Excellent work!

![](https://secure.gravatar.com/avatar/8da0986052c1c3899c72f4f06071779e013297278c2daa84c8dde975fdfdb848?
s=60&d=retro&r=g)

### 󠀁[Works amazingly](https://wordpress.org/support/topic/works-amazingly-10/)󠁿

 [Cristian J. Hidalgo](https://profiles.wordpress.org/sircam73/) 2024 年 1 月 13
日

In the Site Identity option, just go and make sure your 512×512 icon is maskable…..
and voila.

![](https://secure.gravatar.com/avatar/ddd76c2881f54e19413d11b5f98ddfe39c7073a2a94132ecd0679a674870cfb4?
s=60&d=retro&r=g)

### 󠀁[Very Good!](https://wordpress.org/support/topic/very-good-7145/)󠁿

 [krjojo](https://profiles.wordpress.org/krjojo/) 2023 年 11 月 27 日

I like it

![](https://secure.gravatar.com/avatar/94e008c8ff93d43e34149e18d77d688e0e7ef4762469ee1e463ab2b480552cec?
s=60&d=retro&r=g)

### 󠀁[The AVADA options page becomes a blank page](https://wordpress.org/support/topic/the-avada-options-page-becomes-a-blank-page-2/)󠁿

 [刘洪鑫](https://profiles.wordpress.org/liuhongxin1993/) 2023 年 11 月 14 日

In the AVADA option page will become a blank page, do not know whether compatibility
problems or bugs, switch in the page will become a blank page, need to refresh can
be.

 [ 阅读所有27条评价 ](https://wordpress.org/support/plugin/pwa/reviews/)

## 贡献者及开发者

「PWA (渐进式Web应用)」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Weston Ruter ](https://profiles.wordpress.org/westonruter/)
 *   [ Google ](https://profiles.wordpress.org/google/)
 *   [ XWP ](https://profiles.wordpress.org/xwp/)
 *   [ rtCamp ](https://profiles.wordpress.org/rtcamp/)
 *   [ Alberto Medina ](https://profiles.wordpress.org/albertomedina/)

「PWA (渐进式Web应用)」插件已被翻译至 10 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/pwa/contributors)
为本插件所做的贡献。

[帮助将「PWA (渐进式Web应用)」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/pwa)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/pwa/)，查看[SVN仓库](https://plugins.svn.wordpress.org/pwa/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/pwa/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/pwa/)。

## 更新日志

有关插件的更改日志，请参阅 [GitHub 上的发布页面](https://github.com/GoogleChromeLabs/pwa-wp/releases)

## 额外信息

 *  版本 **0.8.2**
 *  最后更新：**1 年前**
 *  活跃安装数量 **20,000+**
 *  WordPress 版本 ** 6.6 或更高版本 **
 *  已测试的最高版本为 **6.8.5**
 *  PHP 版本 ** 7.2 或更高版本 **
 *  语言
 * [Chinese (China)](https://cn.wordpress.org/plugins/pwa/) 、 [Dutch](https://nl.wordpress.org/plugins/pwa/)、
   [English (Australia)](https://en-au.wordpress.org/plugins/pwa/) 、 [English (Canada)](https://en-ca.wordpress.org/plugins/pwa/)、
   [English (UK)](https://en-gb.wordpress.org/plugins/pwa/) 、 [English (US)](https://wordpress.org/plugins/pwa/)、
   [Persian](https://fa.wordpress.org/plugins/pwa/) 、 [Portuguese (Brazil)](https://br.wordpress.org/plugins/pwa/)、
   [Spanish (Mexico)](https://es-mx.wordpress.org/plugins/pwa/) 、 [Spanish (Spain)](https://es.wordpress.org/plugins/pwa/)
   和 [Swedish](https://sv.wordpress.org/plugins/pwa/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/pwa)
 * 标签
 * [progressive web apps](https://cn.wordpress.org/plugins/tags/progressive-web-apps/)
   [pwa](https://cn.wordpress.org/plugins/tags/pwa/)[service-workers.](https://cn.wordpress.org/plugins/tags/service-workers/)
 *  [高级视图](https://cn.wordpress.org/plugins/pwa/advanced/)

## 评级

 4.3 星（最高 5 星）。

 *  [  22 条 5 星评价     ](https://wordpress.org/support/plugin/pwa/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/pwa/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/pwa/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/pwa/reviews/?filter=2)
 *  [  5 条 1 星评价     ](https://wordpress.org/support/plugin/pwa/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/pwa/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/pwa/reviews/)

## 贡献者

 *   [ Weston Ruter ](https://profiles.wordpress.org/westonruter/)
 *   [ Google ](https://profiles.wordpress.org/google/)
 *   [ XWP ](https://profiles.wordpress.org/xwp/)
 *   [ rtCamp ](https://profiles.wordpress.org/rtcamp/)
 *   [ Alberto Medina ](https://profiles.wordpress.org/albertomedina/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/pwa/)