前言介紹
- 這款 WordPress 外掛「commonWP」是 2018-09-13 上架。
- 目前有 600 個安裝啟用數。
- 上一次更新是 2019-02-24,距離現在已有 2260 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.7 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 5.4 以上。
- 有 18 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
dimadin |
外掛標籤
cdn | free cdn | jsDelivr | Public CDN | performance |
內容簡介
commonWP 是一個外掛,可啟用自由、公共的 CDN (jsDelivr) 來使用開源 JavaScript 和 CSS 文件。這些文件包括:
WordPress 核心中的所有文件,除非使用 WordPress 的開發版本。
由 WordPress.org 插件庫托管的所有插件文件,除非特定插件的作者不使用 SVN 標籤進行發布。
由 WordPress.org 主題庫托管的所有主題文件。
由 GitHub 上托管的插件和主題文件,支持 GitHub Updater。
在任何類型的主題、插件或 MU 插件中標記為在npm上可用的所有文件。
它旨在既輕量又非常安全。這個插件所使用的方法比啟用任何 CDN 的任何其他插件都更安全。首先,commonWP 只會在遠程文件與本地文件完全相同的情況下將文件重寫,指向 jsDelivr 上的文件。其次,在比較過程中,它會生成遠程 jsDelivr 文件的 子資源完整性 Hash,並將該 Hash 包含在頁面的源代碼中,因此如果瀏覽器沒有完全相同的 Hash,它不會加載遠程文件。
它沒有任何設置。啟用後,它將在後台填充缓存,這可能需要一些時間,具體取決於站點使用的資源數量。
有關 commonWP 的更多詳細信息,請前往其GitHub 存儲庫。
原文外掛簡介
commonWP is a plugin that enables usage of free, public CDN (jsDelivr) for open source JavaScript and CSS files. Those files are:
All files from WordPress core, unless development version of WordPress is used.
All files from plugins hosted by WordPress.org Plugins Repository, unless author of specific plugin doesn’t use SVN tags for releasing.
All files from themes hosted by WordPress.org Themes Repository.
All files from plugins and themes hosted on GitHub that support GitHub Updater.
All files marked as available on npm in any type of theme, plugin, or MU plugin.
It aims to be both lightweight and very secure. The approach used in this plugin is safer then in any other plugin that enables usage of any CDN. First, commonWP will only rewrite file to point to one on jsDelivr if that remote file is identical to local one. Second, during comparison, it generates subresource identity hash of remote jsDelivr file and includes that hash in page’s source code so browser won’t load remote file if it doesn’t have exactly the same hash.
There are no any settings. After activation, it will fill up its cache in the background, and that may take some time depending on number of resources site uses.
For much more details about commonWP, head over to its GitHub repository.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「commonWP」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
暫無相關外掛推薦。