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/images/transform-images/serve-images-custom-paths.mdx
+2-10Lines changed: 2 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -98,20 +98,12 @@ Leave the **Query** > **Rewrite to...** > *Static* field empty.
98
98
99
99
## Pass every image requested on your zone through Images
100
100
101
-
:::note
102
-
103
-
104
-
This feature requires a Business or Enterprise plan to enable regex in Transform Rules. Refer to [Cloudflare Transform Rules Availability](/rules/transform/#availability) for more information.
105
-
106
-
107
-
:::
108
-
109
101
This example lets you transform every image that is requested on your zone with the `format=auto` option:
110
102
111
103
```
112
-
(http.request.uri.path.extension matches "(jpg)|(jpeg)|(png)|(gif)") and (not (any(http.request.headers["via"][*] contains "image-resizing")))
104
+
(http.request.uri.path.extension in {"jpg" "jpeg" "png" "gif"}) and (not (any(http.request.headers["via"][*] contains "image-resizing")))
113
105
```
114
106
115
107
```txt title="Text in Path > Rewrite to... > Dynamic"
0 commit comments