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
* [Images] Nav changes - batch 2
* Apply suggestions from code review
Co-authored-by: Jun Lee <[email protected]>
---------
Co-authored-by: Jun Lee <[email protected]>
Copy file name to clipboardExpand all lines: src/content/docs/images/manage-images/serve-images/serve-from-custom-domains.mdx
+22-13Lines changed: 22 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@ title: Serve images from custom domains
4
4
sidebar:
5
5
order: 22
6
6
---
7
+
import { DashButton } from"~/components";
7
8
8
9
Image delivery is supported from all customer domains under the same Cloudflare account. To serve images through custom domains, an image URL should be adjusted to the following format:
9
10
@@ -37,21 +38,25 @@ This example lets you rewrite a request from `example.com/images` to `example.co
37
38
38
39
To create a rule:
39
40
40
-
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/login) and select your account and website.
41
-
2. Go to **Rules** > **Overview**.
42
-
3. Next to **URL Rewrite Rules**, select **Create rule**.
43
-
4. Under **If incoming requests match**, select **Wildcard pattern** and enter the following **Request URL** (update with your own domain):
41
+
1. In the Cloudflare dashboard, go to the **Account home** page.
42
+
43
+
<DashButtonurl="/?to=/:account/home" />
44
+
45
+
2. Select your domain.
46
+
3. Go to **Rules** > **Overview**.
47
+
4. Next to **URL Rewrite Rules**, select **Create rule**.
48
+
5. Under **If incoming requests match**, select **Wildcard pattern** and enter the following **Request URL** (update with your own domain):
44
49
45
50
```txt
46
51
https://example.com/images/*
47
52
```
48
53
49
-
5. Under **Then rewrite the path and/or query** > **Path**, enter the following values (using your account hash):
54
+
6. Under **Then rewrite the path and/or query** > **Path**, enter the following values (using your account hash):
Copy file name to clipboardExpand all lines: src/content/docs/images/polish/activate-polish.mdx
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ sidebar:
6
6
7
7
---
8
8
9
-
import { Render } from"~/components"
9
+
import { Render,DashButton } from"~/components"
10
10
11
11
Images in the [cache must be purged](/cache/how-to/purge-cache/) or expired before seeing any changes in Polish settings.
12
12
@@ -18,10 +18,14 @@ Do not activate Polish and [image transformations](/images/transform-images/) si
18
18
19
19
:::
20
20
21
-
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select the account and domain where you want to activate Polish.
22
-
2. Go to **Speed** > **Optimization** > **Image Optimization**.
23
-
3. Under **Polish**, select *Lossy* or *Lossless* from the drop-down menu. [*Lossy*](/images/polish/compression/#lossy) gives greater file size savings.
24
-
4. (Optional) Select **WebP**. Enable this option if you want to further optimize PNG and JPEG images stored in the origin server, and serve them as WebP files to browsers that support this format.
21
+
1. In the Cloudflare dashboard, go to the **Account home** page.
22
+
23
+
<DashButtonurl="/?to=/:account/home" />
24
+
25
+
2. Select the domain where you want to activate Polish.
4. Under **Polish**, select *Lossy* or *Lossless* from the drop-down menu. [*Lossy*](/images/polish/compression/#lossy) gives greater file size savings.
28
+
5. (Optional) Select **WebP**. Enable this option if you want to further optimize PNG and JPEG images stored in the origin server, and serve them as WebP files to browsers that support this format.
25
29
26
30
To ensure WebP is not served from cache to a browser without WebP support, disable any WebP conversion utilities at your origin web server when using Polish.
Copy file name to clipboardExpand all lines: src/content/docs/images/transform-images/serve-images-custom-paths.mdx
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@ head:
7
7
- tag: title
8
8
content: Serve images from custom paths
9
9
---
10
+
import { DashButton } from"~/components";
10
11
11
12
You can use Transform Rules to rewrite URLs for every image that you transform through Images.
12
13
@@ -16,7 +17,14 @@ This page covers examples for the following scenarios:
16
17
- Modify existing URLs to be compatible with transformations in Images
17
18
- Transform every image requested on your zone with Images
18
19
19
-
To create a rule, log in to the Cloudflare dashboard and select your account and website. Then, go to **Rules** > **Overview** and select **Create rule** next to **URL Rewrite Rules**.
20
+
To create a rule:
21
+
1. In the Cloudflare dashboard, go to the **Account home** page.
22
+
23
+
<DashButtonurl="/?to=/:account/home" />
24
+
25
+
2. Select your domain.
26
+
3. Go to **Rules** > **Overview**.
27
+
4. Select **Create rule** next to **URL Rewrite Rules**.
0 commit comments