You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/cache/how-to/cache-rules/create-dashboard.mdx
+21-22Lines changed: 21 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,39 +6,38 @@ sidebar:
6
6
head:
7
7
- tag: title
8
8
content: Create a cache rule in the dashboard
9
-
10
9
---
11
10
12
-
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account and domain.
13
-
2. Go to **Caching** > **Cache Rules**.
14
-
3. To create a new empty rule, select **Create rule**. To duplicate an existing rule, select the three dots next to it > **Duplicate**.
15
-
4. Enter a descriptive name for the rule in **Rule name**.
16
-
5. Under **When incoming requests match**, select **All incoming requests** if you want the rule to apply to all traffic or **Custom filter expression** if you want the rule to only apply to traffic matching the custom expression.
17
-
6. If you selected **Custom filter expression**, under **When incoming requests match**, define the [rule expression](/ruleset-engine/rules-language/expressions/edit-expressions/#expression-builder). Use the **Field** drop-down list to choose an HTTP property and select an **Operator**. Refer to [Available settings](/cache/how-to/cache-rules/settings/) for the list of available fields and operators.
18
-
19
-
<divclass="medium-img">
11
+
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account and domain.
12
+
2. Go to **Caching** > **Cache Rules**.
13
+
3. To create a new empty rule, select **Create rule**. To duplicate an existing rule, select the three dots next to it > **Duplicate**.
14
+
4. (Optional) Select one of the rule templates that address common use cases. Then, review and adjust the proposed rule configuration.
15
+
5. Enter a descriptive name for the rule in **Rule name**.
16
+
6. Under **When incoming requests match**, select **All incoming requests** if you want the rule to apply to all traffic or **Custom filter expression** if you want the rule to only apply to traffic matching the custom expression.
17
+
7. If you selected **Custom filter expression**, under **When incoming requests match**, define the [rule expression](/ruleset-engine/rules-language/expressions/edit-expressions/#expression-builder). Use the **Field** drop-down list to choose an HTTP property and select an **Operator**. Refer to [Available settings](/cache/how-to/cache-rules/settings/) for the list of available fields and operators.
20
18
21
-

19
+
<divclass="medium-img">
22
20
23
-
</div>
21
+

24
22
25
-
6. Following the selection of the field and operator, enter the corresponding value that will trigger the Cache Rule. For example, if the selected field is `Hostname` and the operator is `equals`, a value of `cloudflare.com` would mean the rule matches any request to that hostname.
23
+
</div>
26
24
27
-
<divclass="medium-img">
25
+
8. Following the selection of the field and operator, enter the corresponding value that will trigger the Cache Rule. For example, if the selected field is `Hostname` and the operator is `equals`, a value of `cloudflare.com` would mean the rule matches any request to that hostname.
Rules can be further customized by using the **Edit expression** option. You can find more information in [Edit expressions in the dashboard](/ruleset-engine/rules-language/expressions/edit-expressions/).
36
-
:::
33
+
:::note
34
+
Rules can be further customized by using the **Edit expression** option. You can find more information in [Edit expressions in the dashboard](/ruleset-engine/rules-language/expressions/edit-expressions/).
35
+
:::
37
36
38
-
7. Under **Then**, in the **Cache eligibility** section, select [**Bypass cache**](/cache/how-to/cache-rules/settings/#bypass-cache) if you want matching requests to not be cacheable, or **Eligible for cache** if you want Cloudflare to attempt to cache them. Note that [cache-control headers](/cache/concepts/cache-control/) can also impact cache eligibility.
37
+
9. Under **Then**, in the **Cache eligibility** section, select [**Bypass cache**](/cache/how-to/cache-rules/settings/#bypass-cache) if you want matching requests to not be cacheable, or **Eligible for cache** if you want Cloudflare to attempt to cache them. Note that [cache-control headers](/cache/concepts/cache-control/) can also impact cache eligibility.
39
38
40
-
8. If you selected **Eligible for cache** in the previous step, you can customize the options described in the [Available settings](/cache/how-to/cache-rules/settings/) section.
39
+
10. If you selected **Eligible for cache** in the previous step, you can customize the options described in the [Available settings](/cache/how-to/cache-rules/settings/) section.
41
40
42
-
9. Under **Place at**, from the dropdown, you can select the order of your rule. From the main page, you can also change the order of the rules you have created.
41
+
11. Under **Place at**, from the dropdown, you can select the order of your rule. From the main page, you can also change the order of the rules you have created.
43
42
44
-
10. To save and deploy your rule, select **Deploy**. If you are not ready to deploy your rule, select **Save as Draft**.
43
+
12. To save and deploy your rule, select **Deploy**. If you are not ready to deploy your rule, select **Save as Draft**.
Copy file name to clipboardExpand all lines: src/content/docs/rules/configuration-rules/create-dashboard.mdx
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,14 +6,14 @@ sidebar:
6
6
head:
7
7
- tag: title
8
8
content: Create a configuration rule in the dashboard
9
-
10
9
---
11
10
12
11
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com) and select your account and domain.
13
12
2. Go to **Rules** > **Configuration Rules**.
14
13
3. To create a new empty rule, select **Create rule**. To duplicate an existing rule, select the three dots next to it > **Duplicate**.
15
-
4. Enter a descriptive name for the rule in **Rule name**.
16
-
5. Under **When incoming requests match**, select if you wish to apply the rule to all incoming requests or only to requests that match a custom filter expression.
17
-
6. (Optional) To define a custom expression, use the Expression Builder (specifying one or more values for **Field**, **Operator**, and **Value**) or manually enter an expression using the Expression Editor. For more information, refer to [Edit expressions in the dashboard](/ruleset-engine/rules-language/expressions/edit-expressions/).
18
-
7. Under **Then the settings are**, add the [configuration settings](/rules/configuration-rules/settings/) you wish to change for requests matching the rule expression.
19
-
8. To save and deploy your rule, select **Deploy**. If you are not ready to deploy your rule, select **Save as Draft**.
14
+
4. (Optional) Select one of the rule templates that address common use cases. Then, review and adjust the proposed rule configuration.
15
+
5. Enter a descriptive name for the rule in **Rule name**.
16
+
6. Under **When incoming requests match**, select if you wish to apply the rule to all incoming requests or only to requests that match a custom filter expression.
17
+
7. (Optional) To define a custom expression, use the Expression Builder (specifying one or more values for **Field**, **Operator**, and **Value**) or manually enter an expression using the Expression Editor. For more information, refer to [Edit expressions in the dashboard](/ruleset-engine/rules-language/expressions/edit-expressions/).
18
+
8. Under **Then the settings are**, add the [configuration settings](/rules/configuration-rules/settings/) you wish to change for requests matching the rule expression.
19
+
9. To save and deploy your rule, select **Deploy**. If you are not ready to deploy your rule, select **Save as Draft**.
Copy file name to clipboardExpand all lines: src/content/docs/rules/origin-rules/create-dashboard.mdx
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,13 @@ sidebar:
6
6
head:
7
7
- tag: title
8
8
content: Create an origin rule in the dashboard
9
-
10
9
---
11
10
12
11
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com) and select your account and domain.
13
12
2. Go to **Rules** > **Origin Rules**.
14
13
3. To create a new empty rule, select **Create rule**. To duplicate an existing rule, select the three dots next to it > **Duplicate**.
15
-
4. Enter a descriptive name for the rule in **Rule name**.
16
-
5. Under **When incoming requests match**, define the [rule expression](/ruleset-engine/rules-language/expressions/edit-expressions/).
17
-
6. Under **Set origin parameters**, define the [origin rule settings](/rules/origin-rules/features/) you wish to change for requests matching the rule expression.
18
-
7. To save and deploy your rule, select **Deploy**. If you are not ready to deploy your rule, select **Save as Draft**.
14
+
4. (Optional) Select one of the rule templates that address common use cases. Then, review and adjust the proposed rule configuration.
15
+
5. Enter a descriptive name for the rule in **Rule name**.
16
+
6. Under **When incoming requests match**, define the [rule expression](/ruleset-engine/rules-language/expressions/edit-expressions/).
17
+
7. Under **Set origin parameters**, define the [origin rule settings](/rules/origin-rules/features/) you wish to change for requests matching the rule expression.
18
+
8. To save and deploy your rule, select **Deploy**. If you are not ready to deploy your rule, select **Save as Draft**.
Copy file name to clipboardExpand all lines: src/content/docs/rules/url-forwarding/single-redirects/create-dashboard.mdx
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,8 +13,9 @@ import { Render } from "~/components";
13
13
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com) and select your account and domain.
14
14
2. Go to **Rules** > **Redirect Rules**.
15
15
3. To create a new empty redirect rule, select **Create rule**. To duplicate an existing rule, select the three dots next to it > **Duplicate**.
16
-
4. Enter a descriptive name for the rule in **Rule name**.
17
-
5. Under **When incoming requests match**, select one of the following options:
16
+
4. (Optional) Select one of the rule templates that address common use cases. Then, review and adjust the proposed rule configuration.
17
+
5. Enter a descriptive name for the rule in **Rule name**.
18
+
6. Under **When incoming requests match**, select one of the following options:
18
19
-**Wildcard pattern**: The rule will only apply to traffic matching the wildcard pattern.
19
20
-**Request URL**: Enter the [wildcard pattern](/ruleset-engine/rules-language/operators/#wildcard-matching) using the asterisk (`*`) character to match multiple requests. For example, `https://*.example.com/files/*`.
20
21
-**Then**: Define the [URL redirect settings](/rules/url-forwarding/single-redirects/settings/) including:
@@ -25,7 +26,7 @@ import { Render } from "~/components";
25
26
-**Then**: Define the [URL redirect settings](/rules/url-forwarding/single-redirects/settings/) for all incoming requests.
26
27
-**Custom filter expression**: The rule will only apply to traffic matching a custom expression. Define the [rule expression](/ruleset-engine/rules-language/expressions/edit-expressions/) to configure which requests should be redirected.
27
28
-**Then**: Define the [URL redirect settings](/rules/url-forwarding/single-redirects/settings/) for requests matching the custom rule expression.
28
-
6. To save and deploy your rule, select **Deploy**. If you are not ready to deploy your rule, select **Save as Draft**.
29
+
7. To save and deploy your rule, select **Deploy**. If you are not ready to deploy your rule, select **Save as Draft**.
0 commit comments