Cache static content

Hi. Cloudflare has improved our time to first byte and overall loading time, which I’m very happy about.

However, before Cloudflare was activated on our site, I ran a webpagetest:
https://www.webpagetest.org/result/200604_FV_41eb8f7bf766c4ee6e72ef1552fd0fd3/
where we received a C for Cache Static Content.

After Cloudflare, we received an F for Cache Static Content:
https://www.webpagetest.org/result/200604_ZX_28d2324ae7991461ed8447237ffd1dc2/

How do I improve the caching of static of content?

We’re using WordPress with LiteSpeed Cache.

Cheers,
Steve

This seems to be because of the embedded hotjar.com resources. Cloudflare wont influence external content. If these links are issues you might want to remove them or host locally.

Scroll down to https://www.webpagetest.org/performance_optimization.php?test=200604_ZX_28d2324ae7991461ed8447237ffd1dc2&run=2#cache_static_content

These are warnings regarding the caching instructions for the browser. That is not exactly something Cloudflare influences. You will need to change your server configuration for that and set the right headers.

What you could do on Cloudflare is set up a page rule where you override these headers and set them on Cloudflare’s side. The search will have more details on how to configure the page rule.

This topic was automatically closed after 30 days. New replies are no longer allowed.