Cache Management
Building Automatic Platform Optimization for WordPress using Cloudflare Workers

Building Automatic Platform Optimization for WordPress using Cloudflare Workers

10/2/2020 · Yevgen Safronov, Sven Sauleau

What this post added

Introduced Automatic Platform Optimization for WordPress, a Cloudflare service that runs at the edge using Cloudflare Workers. This service provides zero-config edge caching for HTML content, combining Cloudflare's CDN cache with Workers KV to improve cache cold starts globally. It also enables the development of edge-deployed WordPress plugins and optimizes Google font loading. The implementation details include custom headers (`cf-edge-cache`) for origin communication and logic for cache invalidation based on various conditions and headers (ETag, Last-Modified, Date) when the WordPress plugin is not used.

Read the original post ↗