[WordPress] 外掛分享: PWA for WordPress

首頁外掛目錄 › PWA for WordPress
WordPress 外掛 PWA for WordPress 的封面圖片
300+
安裝啟用
★★★★★
5/5 分(4 則評價)
2522 天前
最後更新
問題解決
WordPress 4.4+ PHP 5.4+ v1.2.0 上架:2018-08-28

內容簡介

關於這個外掛

這個外掛可以將您的 WordPress 網站轉換為 PWA,並在您的網站中創建兩個檔案,「Manifest」和「ServiceWorker」。
Manifest 檔案是一個包含網路應用程式配置設定的 JSON 檔案。
ServiceWorker 則是 JavaScript 檔案,可以控制 PWA 的功能。
要啟用 PWA,請從配置螢幕中設定這兩個檔案。

您可以微調快取,例如過期日期、時間以及 URL 排除。
透過排除 URL,例如新到貨資訊、AJAX 中的資料取得目的地之類,這個外掛可以保持 PWA 的資料新鮮。
您可以設定快取的過期時間,舊的快取將在指定的時間後被清除。

在 1.1.2 版本之後,
支援多站點。
您可以拖延 PWA 安裝彈出式視窗,並在您的網站上新增自己的安裝按鈕。

步驟1
設定 Manifest

準備圖示圖像檔,圖像檔必須是 PNG 格式。
製作離線頁面,此頁面將與 PWA 安裝一起快取,並在 PWA 離線時顯示。
從 Manifest 設定頁面設定 Manifest 檔案。
圖像檔將自動調整大小以符合圖示大小。

步驟2
設定 ServiceWorker

從 ServiceWorker 配置頁面設定 ServiceWorker 檔案。

完成!

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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!

延伸相關外掛

文章
Filter
Apply Filters
Mastodon