這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

PWA for WordPress

描述

About this plugin

To make your WordPress website to PWA, this plugin make two files, “Manifest” and “ServiceWorker” in your website.
Manifest file is a json file that has configurations of web applications.
ServiceWorker is a JavaScript file that controls PWA’s functions.
To start PWA, configure two files from configuration screen.

You can fine-tune the cache, such as expiration date, time and URL exclusion.
By excluding the URLs, like a new arrival information, data acquisition destination in Ajax, this plugin can keep PWA data fresh.
You can set expire time of caches, then old cache will purged after specified time.

After version 1.1.2,
Multi sites are supported.
You can defer the PWA installation popup shown in browser default and add your own installation button on your sites.

STEP1

Configure Manifest

Prepare icon image file, image file must be png format.
Make offline page, this page will cached with PWA installation and shown when PWA is offline.
Setup manifest file from Manifest Configuration page.
Image file will be resized to fit icon sizes automatically.

STEP2

Configure ServiceWorker

Setup ServiceWorker file from ServiceWorker Configuration page.

COMPLETE!

螢幕截圖

  • Main panel: status and usage, toggle switch for PWA start/stop.
  • Configure and generate 'Manifest'
  • Configure and generate 'ServiceWorker'

安裝

  1. Upload the plugin files to the /wp-content/plugins/pwa4wp directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the PWA for WordPress screen to configure the plugin
  4. If “Current PWA Status” in main panel is not working, press “START” button.
  5. done!

常見問題

If you have any questions…

Contact us from this link.
http://www.compin.jp/contact-pwa4wp/

Update information

We are managing the source code with github.
There is information about updates and issues.
https://github.com/ryu-compin/pwa4wp

評價

2019年3月5日
I was looking for a PWA plugin for a multisite installation. It had to be compatible with our push notifications plugin and I tried a quite a few before I came across this one. What a great find! An outstanding plugin, easy to setup with lots of very useful features. Many thanks and best wishes to the developers.
2018年8月29日
有効期限やURLでの除外などキャッシュの細かなコントロールができます。 新着情報のリストやajaxでのデータ取得先のURLなどをキャッシュから除外することで、サイトの鮮度を保ちながらPWAの恩恵を受けることができる。
閱讀全部4個評價

貢獻者及開發者

“PWA for WordPress” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

PWA for WordPress 外掛目前已有 1 個本地化語言版本。 感謝所有譯者為這個外掛做出的貢獻。

將 PWA for WordPress 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.2.0

Update:
Added “not set” for “orientation” parameter.
Added feature “Force Online-First” and “Force Cache-First”.

Fixed issue:
“add” button of First caches does not work.

1.1.5

Fixed issue:
Install popup displayed even though “Defer PWA install” mode.

1.1.4

Update:
Added preview page to default exclude URL.
Fixed issue:
Preview pages were not excluded from cache.
Left margin of pwa4wp-admin.css in several admin pages.
In admin console, some words were not translated.

1.1.3

Fixed issue:
in pwa4wp-a2hs-controller.js, event didn’t pushed into global variable.

1.1.2

Fixed issue:
Fixed a2hs control js error.

1.1.0 / 1.1.1

Release Date – 06 December, 2018
Update:
Multi-site supported.
Defer PWA installation option added.
Fixed issue:
Regular expression form for “URLs for exclude from cache list” increases escape character in every time saving settings.

1.0.7

Release Date – 22 September, 2018
Update:
Added test form for reguler expression in ServiceWorker settings.
Fixed issue:
Fixed PHP worning when PWA is active before Manifest created.
Fixed PHP worning when Manifest create before ServiceWorker created.

1.0.5 / 1.0.6

Release Date – 12 September, 2018
Fixed issue:
Readme typo.
Fixed JavaScript error when fetching “online first”.

1.0.4

Release Date – 12 September, 2018
Fixed issue:
Readme typo.
Update:
When Manifest file generated, ServiceWorker will be re-generated only when ServiceWorker already exists.
Added donation button. 🙂
Edited CSS.

1.0.3

Release Date – 04 September, 2018
Fixed issue:
ServiceWorker cache name is not correct.

1.0.2

Release Date – 04 September, 2018
Fixed issue:
Removed unused CSS loading.
Update:
Add toggle switch for PWA start/stop

1.0.1

Release Date – 30 August, 2018
Fixed issue:
When deactivate plugin, ServiceWorker and Manifest files are removed but PWA status remains active.

1.0.0

Release Date – 29 August, 2018
First release.