How to Implement HTML caching on Cloudflare

Our website has been really slow lately for the last few days.

Cloudflare returned this response “Fundamentally, Cloudflare is doing a good job for your site here, but you need to look at your server’s ability to return HTML faster to make further improvement and/or implement HTML caching on Cloudflare.”

How does one implement HTML caching in our Cloudflare account? I had a look but couldn’t figure it out (very beginner user level).

Thank you in advance.

You can see your cache settings in the cache section of your account

1 Like

Thank you. Our user interface looks different from yours. I looked at the Cache options but couldn’t find anything related to HTML. Maybe it’s called something else?

I looked in the Configuration, Tiered Cache and Overview.

CloudFlare cache caches HTML, there is no specific setting for html vs eg php

1 Like

You can find lots of info on CloudFlare’s caching here: https://developers.cloudflare.com/cache/

But not by default.

2 Likes

Thank you. I can’t figure out how to do it.

You can use a page rule with cache everything that will force cloudflare to cache HTML, if you are using wordpress then use cloudflare APO for Better caching of HTML. Cloudflare doesn’t Cache HTML by default

1 Like

Thank you. I don’t know how to implement a page rule, I was hoping it was more like a box that we could tick. We don’t use WordPress but MODX.

It also looks like we only have 3 Page Rules allowed in our Free Plan with Cloudflare.

This may require you to hire a dev with more experience. Or you can level yourself up with some Community help.

That’s a bit of a limiter. That’s why APO is so appealing for easy caching of WordPress sites.

The same process can be done with a Worker, but it does require some familiarity with how to use the Cloudflare dashboard, and deeper knowledge of MODX cookies. Their forums might even be able to tell you with Cookies to use to bypass cache.

1 Like

https://support.cloudflare.com/hc/en-us/articles/236166048-Caching-Static-HTML-with-WordPress-WooCommerce

Might help

1 Like

They’re not using WordPress/WooCommerce, and don’t have a Biz/Ent plan.

1 Like

Thank you very much. I appreciate the help and info. We’ll see what we can do…

1 Like

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