-
Notifications
You must be signed in to change notification settings - Fork 10.1k
[Images] Nav changes - batch 2 #24961
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,7 +6,7 @@ sidebar: | |
|
|
||
| --- | ||
|
|
||
| import { Render } from "~/components" | ||
| import { Render,DashButton } from "~/components" | ||
|
|
||
| Images in the [cache must be purged](/cache/how-to/purge-cache/) or expired before seeing any changes in Polish settings. | ||
|
|
||
|
|
@@ -18,10 +18,14 @@ Do not activate Polish and [image transformations](/images/transform-images/) si | |
|
|
||
| ::: | ||
|
|
||
| 1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select the account and domain where you want to activate Polish. | ||
| 2. Go to **Speed** > **Optimization** > **Image Optimization**. | ||
| 3. Under **Polish**, select *Lossy* or *Lossless* from the drop-down menu. [*Lossy*](/images/polish/compression/#lossy) gives greater file size savings. | ||
| 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. | ||
| 1. In the Cloudflare dashboard, go to the **Account home** page. | ||
|
|
||
| <DashButton url="/?to=/:account/home" /> | ||
|
|
||
| 2. Select the account and domain where you want to activate Polish. | ||
|
||
| 3. Select ****Speed** > **Optimization**** > **Image Optimization**. | ||
| 4. Under **Polish**, select *Lossy* or *Lossless* from the drop-down menu. [*Lossy*](/images/polish/compression/#lossy) gives greater file size savings. | ||
| 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. | ||
|
|
||
| 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. | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,6 +7,7 @@ head: | |
| - tag: title | ||
| content: Serve images from custom paths | ||
| --- | ||
| import { DashButton } from "~/components"; | ||
|
|
||
| You can use Transform Rules to rewrite URLs for every image that you transform through Images. | ||
|
|
||
|
|
@@ -16,7 +17,14 @@ This page covers examples for the following scenarios: | |
| - Modify existing URLs to be compatible with transformations in Images | ||
| - Transform every image requested on your zone with Images | ||
|
|
||
| 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**. | ||
| To create a rule: | ||
| 1. In the Cloudflare dashboard, go to the **Account home** page. | ||
|
|
||
| <DashButton url="/?to=/:account/home" /> | ||
|
|
||
| 2. Select your account and domain. | ||
|
||
| 3. Go to **Rules** > **Overview**. | ||
| 4. Select **Create rule** next to **URL Rewrite Rules**. | ||
|
|
||
| ## Before you start | ||
|
|
||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be just
Select your domain?