Beschrijving
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.
Installatie
- Upload the plugin to your WordPress plugins directory, or install via the admin dashboard.
- Activate the plugin.
- Open Tools Prefetch URLs in your WordPress admin to access:
- Your auto-generated manifest download links (scripts, styles, fonts, custom)
- The “Custom URLs” field (add images, files, or other assets for prefetching)
- The “Generate Manifest” button for instant manual update
- The “Log” tab to review manifest build history
- No further configuration needed! The manifest files and HTTP Link headers are managed automatically.
FAQ
-
Where are the manifest files?
-
They’re in your
wp-content/uploads/prefetch/directory. -
Will this change my site’s HTML?
-
No. The plugin only adds HTTP Link headers, it does not modify your site’s markup.
-
Do I need to configure Cloudflare?
-
You only need to enable Prefetch URLs in your Cloudflare dashboard.
Important: Cloudflare Prefetch URLs requires a Cloudflare Enterprise account.
For non-Enterprise users, we recommend FlyingPress with FlyingCDN or Cloudways.
Beoordelingen
Er zijn geen beoordelingen voor deze plugin.
Bijdragers & ontwikkelaars
“Prefetch URLs Manifest Generator for Cloudflare” is open source software. De volgende personen hebben bijgedragen aan deze plugin.
BijdragersVertaal “Prefetch URLs Manifest Generator for Cloudflare” naar jouw taal.
Interesse in de ontwikkeling?
Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.
Changelog
1.2.0
- Performance: Rewrote font extraction to read local CSS from the filesystem (no HTTP), added transient caching keyed by ?ver/filemtime, 512 KB safety limit, and 1s timeout for rare external CSS – massive CPU/I/O reduction.
- Performance: De-duplicated all manifest entries and reduced unnecessary writes; logging only when a manifest truly changes.
- UI/UX: New sticky header with compact “Generate Manifest” button; refined tab design (uppercase labels, yellow active underline #FFBE15, cleaner spacing/colors).
- Admin: Custom URLs save flow now uses PRG redirect and rebuilds manifests immediately; always-visible helper text aligned with the button.
- Headers: Ensures
manifest-custom.txtis also delivered via HTTP Link header alongside scripts/styles/fonts. - Reliability: Safer URL normalization and internal-only filtering across all manifests; version appending for cache busting preserved.
1.1.0
- Plugin name and branding updated: Now “Prefetch URLs Manifest Generator for Cloudflare”
- New: Tools Prefetch URLs page in the WordPress admin
- New: Four types of manifests are now generated: scripts, styles, fonts, and custom URLs
- New: “Custom URLs” field (add your own critical files for prefetch, like logos, PDFs, SVGs)
- New: “Generate Manifest” and “Save Custom URLs” buttons – now with instant feedback
- New: Build Log tab – shows last 5 manifest builds, with green/red status
- Improved: Design
- Improved: Only unique (de-duplicated) entries in manifests
- Improved: Cron-based automatic rebuilding (hourly) and manual “Generate” in admin
1.0.0
- Initial release.
