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/rules/reference/troubleshooting.mdx
+15-10Lines changed: 15 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,10 +7,9 @@ head:
7
7
- tag: title
8
8
content: Rules troubleshooting
9
9
description: Review common troubleshooting scenarios for Rules features.
10
-
11
10
---
12
11
13
-
import { Example, Render } from"~/components"
12
+
import { Example, Render } from"~/components";
14
13
15
14
## Interaction between Cloudflare challenges and Rules features
16
15
@@ -28,6 +27,12 @@ For example, define a compound expression for your rule using the `and` operator
28
27
29
28
If you are using [HTTP DCV](/ssl/edge-certificates/changing-dcv-method/methods/http/) and also have [Single Redirects](/rules/url-forwarding/single-redirects/) set up in your zone, consider excluding the `/.well-known/*` path from your rule to avoid DCV issues. For details and other resources refer to the [SSL/TLS documentation](/ssl/edge-certificates/changing-dcv-method/).
30
29
30
+
## Content-Length header removed from response
31
+
32
+
Cloudflare may remove the `Content-Length` header from responses delivered to website visitors. If the visitor must receive the `Content-Length` header, configure the origin server to include a `cache-control: no-transform` HTTP header in the response.
33
+
34
+
Alternatively, disable compression using a [compression rule](/rules/compression-rules/) and ensure that no Cloudflare settings are changing the response received from the origin server. For details on which products can change the response content, refer to [Notes about end-to-end compression](/speed/optimization/content/compression/#notes-about-end-to-end-compression).
35
+
31
36
## URL rewrites affect other Rules features executed later
32
37
33
38
If you rewrite a URI path using a [URL rewrite](/rules/transform/url-rewrite/), this may affect other Rules features executed later — such as [Origin Rules](/rules/origin-rules/) — if they include the URI path in their filter expression.
@@ -36,17 +41,17 @@ Consider the following origin rule configuration:
36
41
37
42
<Example>
38
43
39
-
* Rule expression: `http.host == "example.com" and starts_with(http.request.uri.path, "/downloads/")`
0 commit comments