Cache and WAF rules priority order

Hello,
I’ve been trying to confirm how Cloudflare rules work.
I saw in the official documentation that they are applied from top to bottom. However, I read in a forum post that they are applied from bottom to top. After testing some cache rules, I noticed that a rule is applied first if it’s at the bottom.

How does this work? Thanks!

Can you please provide a link for that?

For Cache Rules, Last Setting Wins. Page Rules are old and go top to bottom.

https://developers.cloudflare.com/ruleset-engine/about/rules/

WAF is a bit different in that you need to pass each rule as you go down the list. So Skips need to above whatever it is you want to skip.

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