Skip to content

Commit c3d34bc

Browse files
authored
[Rules] Update execution order (#21758)
1 parent 93f4e39 commit c3d34bc

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

src/content/partials/rules/product-execution-order.mdx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,16 @@ import { Render } from "~/components";
66

77
The execution order of Rules features is the following:
88

9-
- [Origin Rules](/rules/origin-rules/)
10-
- [Cache Rules](/cache/how-to/cache-rules/)
11-
- [Configuration Rules](/rules/configuration-rules/)
129
- [Single Redirects](/rules/url-forwarding/single-redirects/)
10+
- [URL Rewrite Rules](/rules/transform/url-rewrite/)
11+
- [Configuration Rules](/rules/configuration-rules/)
12+
- [Origin Rules](/rules/origin-rules/)
1313
- [Bulk Redirects](/rules/url-forwarding/bulk-redirects/)
14+
- [Managed Transforms](/rules/transform/managed-transforms/)
15+
- [Request Header Transform Rules](/rules/transform/request-header-modification/)
16+
- [Cache Rules](/cache/how-to/cache-rules/)
1417
- [Snippets](/rules/snippets/)
18+
- [Cloud Connector](/rules/cloud-connector/)
1519

1620
The different types of rules listed above will take precedence over [Page Rules](/rules/page-rules/). This means that Page Rules will be overridden if there is a match for both Page Rules and the Rules products listed above.
1721

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
---
22
{}
3-
43
---
54

6-
Generally speaking, for [non-terminating actions](/ruleset-engine/rules-language/actions/) the last change made by rules in the same [phase](/ruleset-engine/about/phases/) will win (later rules can overwrite changes done by previous rules). However, for terminating actions (*Block*, *Redirect*, or one of the challenge actions), rule evaluation will stop and the action will be executed immediately.
5+
Generally speaking, for [non-terminating actions](/ruleset-engine/rules-language/actions/) the last change made by rules in the same [phase](/ruleset-engine/about/phases/) will win (later rules can overwrite changes done by previous rules). However, for terminating actions (_Block_, _Redirect_, or one of the challenge actions), rule evaluation will stop and the action will be executed immediately.
6+
7+
For example, if multiple rules with the _Redirect_ action match, Cloudflare will always use the URL redirect of the first rule that matches. Also, if you configure URL redirects using different Cloudflare products (Single Redirects and Bulk Redirects), the product executed first will apply, if there is a rule match (in this case, Single Redirects).
78

8-
For example, if multiple rules with the *Redirect* action match, Cloudflare will always use the URL redirect of the first rule that matches. Also, if you configure URL redirects using different Cloudflare products (Single Redirects and Bulk Redirects), the product executed first will apply, if there is a rule match (in this case, Single Redirects). Refer to the [Phases list](/ruleset-engine/reference/phases-list/) for the product execution order.
9+
Refer to the [Phases list](/ruleset-engine/reference/phases-list/) for the product execution order.

0 commit comments

Comments
 (0)