Building Automatic Platform Optimization for WordPress using Cloudflare Workers
Oct 2, 2020Yevgen Safronov, Sven Sauleau

Summary
This post introduces Automatic Platform Optimization for WordPress, a new feature that uses Cloudflare Workers to provide zero-config edge caching for HTML content. It explains how this feature combines the existing Cloudflare cache with Workers KV to improve cache cold starts globally. The post details the HTML caching rules, the implementation with and without the Cloudflare for WordPress plugin, and the use of custom headers like `cf-edge-cache` to communicate caching rules from the origin. It also discusses how Workers KV is used to improve loading times for cache cold starts from any location.