I have a wordpress website that I want to cache the HTML for. I have setup some page rules that i want to use to cache the HTML for the entire website. So if a user visits website.com/some-new-blog-post. The HTML of this will be cached and served instead of having to make PHP render that HTML.
Here is the configuration I have set in the Cloudflare admin panel.
Here are the headers i get back in the response. I have tried multiple browsers, some logged into wordpress and others logged out. Nothing seems to make this return a cache hit. All other static assets like css, js and images are caching as expected.
cache-control: no-store, no-cache, must-revalidate
content-type: text/html; charset=UTF-8
date: Wed, 10 Jul 2019 14:38:19 GMT
expect-ct: max-age=604800, report-uri=“https://report-uri.Cloudflare.com/cdn-cgi/beacon/expect-ct”
expires: Thu, 19 Nov 1981 08:52:00 GMT