Skip to content

Commit 4121601

Browse files
authored
[Terraform, Cache] Fix anchors in internal links (#19303)
1 parent 0eb3902 commit 4121601

File tree

2 files changed

+15
-28
lines changed

2 files changed

+15
-28
lines changed

src/content/docs/cache/how-to/purge-cache/purge-by-single-file.mdx

Lines changed: 14 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ title: ​Purge by single-file
33
pcx_content_type: how-to
44
sidebar:
55
order: 1
6-
76
---
87

98
With purge by single-file, cached resources are instantly removed from the stored assets in your Content Delivery Network (CDN) across all data centers. New requests for the purged asset receive the latest version from your origin web server and add it back to your CDN cache within the specific Cloudflare data center that served the request.
@@ -12,24 +11,20 @@ The single-file purge rate limit for the Free subscription is 1,000 URLs/minute.
1211

1312
A single-file purge performed through your Cloudflare dashboard does not clear objects that contain any of the following:
1413

15-
* [Custom cache keys](/cache/how-to/cache-keys/)
16-
* [Origin header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin)
17-
* Any of these request headers:
18-
* `X-Forwarded-Host`
19-
* `X-Host`
20-
* `X-Forwarded-Scheme`
21-
* `X-Original-URL`
22-
* `X-Rewrite-URL`
23-
* `Forwarded`
24-
25-
You can purge objects with these characteristics using an API call to ([purge files by URL](/api/resources/cache/methods/purge/#purge-cached-content-by-url)). In the data/header section of the API call, you must include all headers and cache keys contained in the cached resource, along with their matching values.
26-
27-
:::caution[Warning]
14+
- [Custom cache keys](/cache/how-to/cache-keys/)
15+
- [Origin header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin)
16+
- Any of these request headers:
17+
- `X-Forwarded-Host`
18+
- `X-Host`
19+
- `X-Forwarded-Scheme`
20+
- `X-Original-URL`
21+
- `X-Rewrite-URL`
22+
- `Forwarded`
2823

24+
You can purge objects with these characteristics using an API call to ([purge files by URL](/api/resources/cache/methods/purge/)). In the data/header section of the API call, you must include all headers and cache keys contained in the cached resource, along with their matching values.
2925

26+
:::caution
3027
Always use UTF-8 encoded URLs for single-file cache purges. Wildcards are not supported on single file purge, and you must use purge by hostname, prefix, or implement cache tags as an alternative solution. All of the listed options are Enterprise features.
31-
32-
3328
:::
3429

3530
1. Log in to your [Cloudflare dashboard](https://dash.cloudflare.com/login), and select your account and domain.
@@ -41,20 +36,12 @@ Always use UTF-8 encoded URLs for single-file cache purges. Wildcards are not su
4136
7. Review your entries.
4237
8. Select **Purge**.
4338

44-
:::note[Note]
45-
46-
47-
For information on how to use single-file purge to purge assets cached by a Workers fetch, refer to [​​Using Workers to purge](/workers/reference/how-the-cache-works/#single-file-purge--assets-cached-by-a-worker).
48-
49-
39+
:::note
40+
For information on how to use single-file purge to purge assets cached by a Workers fetch, refer to [Using Workers to purge](/workers/reference/how-the-cache-works/#single-file-purge-assets-cached-by-a-worker).
5041
:::
5142

52-
:::caution[Warning]
53-
54-
43+
:::caution
5544
If you have a [Transform Rule](/rules/transform/) in place that is modifying part of a URL path, you must use the non-transform (end user) URL when performing single file purge so that purge can take effect.
56-
57-
5845
:::
5946

6047
## Resulting cache status

src/content/docs/terraform/additional-configurations/waf-custom-rules.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ resource "cloudflare_ruleset" "zone_custom_firewall" {
6262
### Add a custom rule challenging requests with leaked credentials
6363

6464
:::note
65-
For more information on enabling leaked credentials detection using Terraform, refer to the [leaked credentials detection](/waf/detections/leaked-credentials/get-started/#1-turn-on-leaked-credentials-detection) documentation.
65+
For more information on enabling leaked credentials detection using Terraform, refer to the [leaked credentials detection](/waf/detections/leaked-credentials/get-started/#1-turn-on-the-detection) documentation.
6666
:::
6767

6868
This example adds a custom rule that challenges requests with leaked credentials by using one of the [leaked credentials fields](/waf/detections/leaked-credentials/#leaked-credentials-fields) in the rule expression.

0 commit comments

Comments
 (0)