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

首頁外掛目錄 › Prefetch URLs Manifest Generator for Cloudflare
WordPress 外掛 Prefetch URLs Manifest Generator for Cloudflare 的封面圖片
10+
安裝啟用
尚無評分
212 天前
最後更新
問題解決
WordPress 5.2+ PHP 7.2+ v1.2.0 上架:2025-07-26

內容簡介

總結:
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 預取您的資產。

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Prefetch URLs Manifest Generator for 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.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon