Skip to content

Commit fb9c0b6

Browse files
pedrosousaharshil1712
authored andcommitted
[Rules, Cache] Mention templates in dashboard instructions (#17688)
1 parent 3e3c2a6 commit fb9c0b6

File tree

4 files changed

+36
-36
lines changed

4 files changed

+36
-36
lines changed

src/content/docs/cache/how-to/cache-rules/create-dashboard.mdx

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,39 +6,38 @@ sidebar:
66
head:
77
- tag: title
88
content: Create a cache rule in the dashboard
9-
109
---
1110

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-
<div class="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.
2018

21-
![Select fields in the Expression Builder.](~/assets/images/cache/select-fields.png)
19+
<div class="medium-img">
2220

23-
</div>
21+
![Select fields in the Expression Builder.](~/assets/images/cache/select-fields.png)
2422

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>
2624

27-
<div class="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.
2826

29-
![Example rule](~/assets/images/cache/example-rule.png)
27+
<div class="medium-img">
3028

31-
</div>
29+
![Example rule](~/assets/images/cache/example-rule.png)
3230

33-
:::note
31+
</div>
3432

35-
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+
:::
3736

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.
3938

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.
4140

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.
4342

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**.

src/content/docs/rules/configuration-rules/create-dashboard.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ sidebar:
66
head:
77
- tag: title
88
content: Create a configuration rule in the dashboard
9-
109
---
1110

1211
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com) and select your account and domain.
1312
2. Go to **Rules** > **Configuration Rules**.
1413
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**.

src/content/docs/rules/origin-rules/create-dashboard.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ sidebar:
66
head:
77
- tag: title
88
content: Create an origin rule in the dashboard
9-
109
---
1110

1211
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com) and select your account and domain.
1312
2. Go to **Rules** > **Origin Rules**.
1413
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**.

src/content/docs/rules/url-forwarding/single-redirects/create-dashboard.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ import { Render } from "~/components";
1313
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com) and select your account and domain.
1414
2. Go to **Rules** > **Redirect Rules**.
1515
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:
1819
- **Wildcard pattern**: The rule will only apply to traffic matching the wildcard pattern.
1920
- **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/*`.
2021
- **Then**: Define the [URL redirect settings](/rules/url-forwarding/single-redirects/settings/) including:
@@ -25,7 +26,7 @@ import { Render } from "~/components";
2526
- **Then**: Define the [URL redirect settings](/rules/url-forwarding/single-redirects/settings/) for all incoming requests.
2627
- **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.
2728
- **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**.
2930

3031
<Render
3132
file="url-forwarding/requires-proxied-site"

0 commit comments

Comments
 (0)