Page Rules migration - How to check that caching is working?

I have about 10 domains on CF with caching enabled to origins on AWS. CF are deprecating Page Rules and I'm following this https://developers.cloudflare.com/rules/reference/page-rules-migration/ to update my rule to caching everything on the domain, e.g. http.host eq "example.com". Is there an easy way to verify that the new Cache Rule works before I disable the old Page Rule?
Cloudflare Docs
Page Rules migration guide · Cloudflare Rules docs
Page Rules are now a legacy product. Cloudflare recommends considering our new Rules features for your new implementations. Please follow the …
5 Replies
Chaika
Chaika6mo ago
Worth mentioning that entire thing with Page rules recently changed. They're no longer deprecated, just legacy, and they'll automatically transfer them for you in 2025
Is there an easy way to verify that the new Cache Rule works before I disable the old Page Rule?
Cache Rules take precedence over Page Rules. If you want to see if it's matching or not, you can use the Trace account-level feature and input your url.
Chaika
Chaika6mo ago
If you want to cache everything on the entire domain, including on subdomains, you can click "Edit Expression" and type true, ex:
No description
Chaika
Chaika6mo ago
http.host eq example.com would only force caching of everything on example.com, not www.example.com or mycoolsubdomain.example.com
nanzepanze
nanzepanzeOP6mo ago
what if www.example.com redirects to example.com is it enough to use http.host eq example.com or should I just use true? Cool the Trace tool confirms that ^^ works with the redirect. Thank you @Chaika !
Chaika
Chaika6mo ago
as long as all assets/etc will be loaded off example.com/root then yea you'd be fine
Want results from more Discord servers?
Add your server