Wordpress not caching

Why this simples page (https://nova.cartacapital.com.br/testecf.php), with headers:

cache-control public, max-age=180

is not getting HIT in CF cache?

What’s is wrong?

Cloudflare does not cache HTML by default.

https://developers.cloudflare.com/cache/about/default-cache-behavior

You should create a page rule with cache level of “Cache Everything” selected.

2 Likes

If you want to cache the entire site, and not just that one PHP URL, I suggest you use APO:

https://developers.cloudflare.com/automatic-platform-optimization/

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.