Cf-Edge-Cache

The HTTP Cf-Edge-Cache response header is an unofficial, Cloudflare-specific header instructing Cloudflare's edge network to cache HTML content delivered from origin servers or Cloudflare Workers.

Usage

The Cf-Edge-Cache header is part of Cloudflare's Automatic Platform Optimization (APO) feature, primarily designed for WordPress sites. When a WordPress site has the Cloudflare APO plugin active, the origin server adds this header to responses, signaling the HTML content is eligible for edge caching.

By default, Cloudflare does not cache HTML responses at the edge. The Cf-Edge-Cache header overrides this behavior and tells Cloudflare to store the HTML response in its edge cache. This allows full-page caching of WordPress content without requiring manual page rules or Cache-Control configuration. The Cf-Cache-Status header on the response confirms whether the edge cache served a stored copy or fetched from the origin.

Values

cache, platform=wordpress

The cache, platform=wordpress value is the standard directive added by the Cloudflare APO WordPress plugin. The cache portion instructs the edge to cache the response, and platform=wordpress identifies the origin as a WordPress site so Cloudflare applies WordPress-specific Caching logic including automatic cache purging on content updates.

no-cache

The no-cache value tells Cloudflare's edge not to cache the response. This appears on pages excluded from APO caching, such as logged-in user pages, WooCommerce cart pages, or other dynamic content where personalization prevents safe caching.

Example

The most common value signals the response is eligible for Cloudflare APO edge caching from a WordPress origin. The Cf-Ray header and Cf-Cache-Status header typically appear alongside this header in responses from Cloudflare-proxied WordPress sites.

Cf-Edge-Cache: cache, platform=wordpress

When a page is excluded from edge caching, the header signals Cloudflare's edge nodes pass the response through without storing a copy. This is common for authenticated or personalized pages.

Cf-Edge-Cache: no-cache

Takeaway

The Cf-Edge-Cache header instructs Cloudflare's edge network to cache HTML content as part of the Automatic Platform Optimization feature. The header bridges WordPress origins and Cloudflare's edge cache, enabling full-page HTML caching without manual cache rule configuration.

See also

Last updated: March 6, 2026