[WordPress] 外掛分享: Prefetch URLs Manifest Generator for Cloudflare

WordPress 外掛 Prefetch URLs Manifest Generator for Cloudflare 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Prefetch URLs Manifest Generator for Cloudflare」是 2025-07-26 上架。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2025-07-29,不久前才剛更新。
  • 外掛最低要求 WordPress 5.2 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.2 以上。
  • 尚未有人給過這款外掛評分。
  • 論壇上目前有 1 個提問,問題解答率 0%

外掛協作開發者

swissky |

外掛標籤

manifest | prefetch | cloudflare | performance | optimization |

內容簡介

總結:
Prefetch Manifests 通過自動生成 WordPress 載入的所有腳本和樣式的清單檔案,並添加 HTTP Link 標頭以指向這些清單,幫助您充分利用 Cloudflare Prefetch URLs 和現代瀏覽器。 這使得 Cloudflare 能夠預取您網站的關鍵資產,從而加快頁面加載速度,提升訪問者體驗。

問題與答案:
1. Prefetch Manifests 如何幫助提高網站性能?
- Prefetch Manifests 會自動生成 WordPress 載入的所有腳本和樣式的清單檔案,並添加 HTTP Link 標頭指向這些清單,從而使得 Cloudflare 能夠預取您網站的關鍵資產,提升頁面加載速度,改善訪問者體驗。

2. Cloudflare Prefetch URLs 只對哪些訂戶可用?
- Cloudflare Prefetch URLs 僅適用於 Cloudflare 企業客戶。

3. 除了 Cloudflare 企業客戶以外,建議使用什麼來實現自動資產預取和優化性能?
- 如果您沒有 Cloudflare 企業計劃,建議使用 FlyingPress 搭配 FlyingCDN 來實現優秀的性能優化和自動資產預取。

4. 哪些主機服務商不提供“Prefetch URLs”功能?
- rocket.net
- Cloudways

5. 哪些主機服務商支持“Prefetch URLs”?
- Servebolt with Accelerated Domains

6. Prefetch Manifests 如何工作?
- 外掛將掃描每個頁面上所有 enqueued 的腳本和樣式。
- 將它們的 URL 寫入兩個清單檔案:一個用於腳本,一個用於樣式。
- 這些清單檔案保存在您的上傳目錄中。
- 每次頁面載入時,外掛會添加 HTTP Link 標頭,參考清單檔案,以便 Cloudflare 預取您的資產。

原文外掛簡介

Prefetch Manifests helps you get the most out of Cloudflare Prefetch URLs – and modern browsers – by automatically generating manifest files of all scripts and styles loaded by WordPress, and adding HTTP Link headers to point to these manifests. This enables Cloudflare to prefetch your site’s critical assets, resulting in faster page loads and improved visitor experience.
Note: Cloudflare Prefetch URLs is only available for Cloudflare Enterprise customers. If you do not have a Cloudflare Enterprise plan, we recommend using FlyingPress together with FlyingCDN for excellent performance optimization and automatic asset preloading on all hosting plans.
The following hosting providers do not offer “Prefetch URLs” despite Cloudflare Enterprise:
➜ rocket.net
➜ Cloudways
Other hosting providers which support “Prefetch URLs”
➜ Servebolt with Accelerated Domains
How it works:
– The plugin scans all enqueued scripts and styles on every page.
– It writes their URLs into two manifest files: one for scripts, one for styles.
– These manifest files are saved in your uploads directory (e.g. /wp-content/uploads/prefetch/manifest-script.txt).
– On every page load, the plugin adds HTTP Link headers referencing the manifest files, as recommended by Cloudflare.
– Cloudflare (and other supporting systems) can now prefetch your assets efficiently.
Benefits using Prefetch URLs from Cloudflare

Boosts performance: Cloudflare and browsers can preload assets before users request them, making navigation feel instant.
Automatic & maintenance-free: No manual configuration required – just activate the plugin and you’re set.
Perfect for Cloudflare: Uses exactly the approach Cloudflare Prefetch URLs recommends, with manifest files and HTTP Link headers.
Standards-compliant: Uses the HTTP Link header and simple, readable manifest files in text format.
No bloat: Does not change your site content, only provides optimized hints for CDNs and browsers.

Prefetch vs Preload: What’s the difference?
Cloudflare Prefetch URLs is an advanced feature that lets you provide Cloudflare with a list of important URLs—like scripts, styles, or your own files—using manifest files and special HTTP Link headers. Cloudflare then prefetches these assets at the edge, so when visitors arrive, resources are already primed in the CDN cache, making your site feel lightning-fast. Prefetch manifests are especially powerful for making the next page load feel instant, even before a user clicks.
Preload links (e.g., ) are a standard browser feature. They tell the browser to fetch a specific asset (script, style, font, etc.) as soon as possible on the current page, speeding up render time or interactivity. Preload is only for assets needed by the currently loaded page and does not prepare the CDN edge for subsequent navigation.
In summary:
– Cloudflare Prefetch URLs: Optimizes asset delivery at the CDN level, prefetching files for future pageviews and making your whole site more responsive—especially for returning visitors.
– Preload links: Help browsers load critical assets for the current page faster, improving first render and user experience, but do not influence the CDN cache for upcoming navigations.
You can (and often should) use both strategies together for maximum speed!
License
This plugin is free software, released under the terms of the GNU General Public License version 2 or later.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Prefetch URLs Manifest Generator for Cloudflare」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.0 | 1.1.0 | trunk |

延伸相關外掛(你可能也想知道)

  • Speculative Loading 》- 這個 WordPress 外掛支援 Speculation Rules API,該 API 可以根據使用者互動,定義規則來動態預取或預渲染特定的 URL。, - 請參閱 Speculation Rules WICG...。
  • Flying Pages: Preload Pages for Faster Navigation & Improved User Experience 》Flying Pages 是一款 WordPress 外掛,可以在使用者點擊頁面前預先加載頁面,讓頁面瞬間載入。, , 它的運作方式是透過注入一小段(1KB gzipped)JavaScript ...。
  • Pre* Party Resource Hints 》這個外掛允許使用者自動且容易地插入資源提示來改善頁面載入時間。, 支援 DNS 預取、預渲染、預連線、預取和預載入等功能。, 安裝完成後,下次訪問網站時將會...。
  • Quicklink for WordPress 》Quicklink for WordPress 可嘗試加快導航到下一個頁面的加載速度。該插件嵌入了一個 JavaScript 库,用於檢測視口中的連結,等待瀏覽器閒置並預取這些連結的 ...。
  • Preload Featured Images 》此外掛可自動預載文章中的精選圖片以大幅提升頁面速度分數。, 對於使用主題自動在單篇文章頁面頂端顯示精選圖片的網站來說,此外掛是「必備品」。, 為何需要...。
  • Preload Images 》透過預載圖片的方式,為您提供更快速的網頁載入體驗。Preload Images 外掛支援無限制的圖片網址,特別適用於相片庫和圖片較重的網站,讓您能夠以最無縫的方式...。
  • HTTP/2 Server Push 》HTTP/2 是驅動網頁的傳統 HTTP 協定的新一代。其最強大的功能之一是伺服器推送,一種讓網頁伺服器在瀏覽器需要資源之前就將它們發送到瀏覽器的方式。這避免了...。
  • Simple DNS Prefetch 》DNS 解析時間可能會導致使用者感知到的延遲時間增加。DNS 解析所需時間的長短是高度變異的,延遲的時間從約 1 毫秒(本地緩存的結果)到報告的常見時間為幾秒...。
  • Oxyplug Prefetch & Prerender 》, 在文章/產品類別頁面上,使用者點擊前會先預載前 X 項。X 的預設值為 4 項,您可以透過外掛設定進行調整。, 如果使用者將滑鼠游標停留在某個連結上 X ...。
  • Better Resource Hints 》Better Resource Hints 可以讓你的 WordPress 網站或應用程式更快速,並透過 intelligently leveraging 資源提示(例如 prefetch、preload、preconnect 和 se...。
  • WP Instant Links 》此外掛程式無須設定即可馬上使用。啟用後,此外掛程式會在使用者點擊前預先提取下一個網頁,因此用戶可以體驗到即時的頁面載入。, 提供更好的使用者體驗,尤...。
  • WordPress Instant Articles 》使用 Instant Articles for WordPress,您可以配置 DNS 預取 URL,並在前頁預測最後兩篇文章,以及查看單篇文章時的下一篇和上一篇文章。您還可以選擇預測置...。
  • DNS Prefetch 》這個外掛實現了 DNS 預取技術,遵循 Mozilla 對 Firefox 瀏覽器的規範。希望其他瀏覽器最終也能支持 DNS 預取。, 詳細內容請參閱 https://developer.mozilla....。
  • Image Preloading 》這個外掛可以預載入圖片,讓網頁載入速度更快。圖片預載入可以支援無限量的圖片 URL,適用於相片庫或其他需要加載大量圖片的網站,使得圖片載入的過程盡可能...。
  • Preload Featured Image 》外掛簡介總結:這個外掛對於使用自動顯示精選圖像於單篇文章頁面頂部的主題的網站來說是一個「必備」的工具。, , 問題與答案:, , 問:這個外掛有什麼特點?,...。

文章
Filter
Apply Filters
Mastodon