Caching not working properly after setting up Cloudfare

[ad_1]

Hey all, set up Cloudfare last night. My WAF rules seem to be working and nothing is slowing, but the caching is not working correctly.

I enabled the cache everything rule.

When I inspect the response headers with the rule turned on, I get Cf-Cache-Status: REVALIDATED.

When I turn the rule off, I get Cf-Cache-Status: DYNAMIC.

My understanding is that dynamic means Cloudfare does not consider the asset eligible to cache and settings do not instruct Cloudflare to cache the asset. Instead, it’s being requested from the origin. So this makes sense if the cache rule is off.

When I enable the cache everything rule, I understand the revalidated status means the resource serves from the cache but it’s stale- why is it stale? Is there an additional page or cache rule I can try enabling? I feel like I’m missing something.

Edit: I toggled the rule on and off and refreshed and started receiving Cf-Cache-Status: HIT, when I tried clearing my history and refreshed I receive Cf-Cache-status: REVALIDATED.

[ad_2]
1 Comment

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer