Skip to content

Commit 5dd3d0c

Browse files
nikitacanosdnts
authored andcommitted
[Configuration Rules] New webp option in Polish setting (cloudflare#22791)
1 parent 7383ddc commit 5dd3d0c

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed
2.07 MB
Loading
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: Fine-tune image optimization — WebP now supported in Configuration Rules
3+
description: Configuration Rules now let you selectively enable or disable Polish with WebP format for precise control over image optimization.
4+
products:
5+
- rules
6+
date: 2025-05-30T17:00:00Z
7+
---
8+
9+
You can now enable [Polish](/images/polish/activate-polish/) with the `webp` format directly in [Configuration Rules](/rules/configuration-rules/), allowing you to optimize image delivery for specific routes, user agents, or A/B tests — without applying changes zone-wide.
10+
11+
**What’s new:**
12+
- [WebP](/images/polish/compression/#webp) is now a supported [value](/rules/configuration-rules/settings/#polish) in the **Polish** setting for Configuration Rules.
13+
14+
![New webp option in Polish setting of Configuration Rules](~/assets/images/changelog/rules/configuration-rules-webp.gif)
15+
16+
This gives you more precise control over how images are compressed and delivered, whether you're targeting modern browsers, running experiments, or tailoring performance by geography or device type.
17+
18+
Learn more in the [Polish](/images/polish/) and [Configuration Rules](/rules/configuration-rules/) documentation.

src/content/docs/rules/configuration-rules/settings.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,18 +203,19 @@ Use this setting to configure Polish for matching requests:
203203
- Off
204204
- Lossless
205205
- Lossy
206+
- WebP
206207

207208
Refer to [Compression options](/images/polish/compression/#compression-options) for more information on these values.
208209

209210
<Details header="API information">
210211

211212
API configuration property name: `"polish"` (string).
212213

213-
API values: `"off"`, `"lossless"`, `"lossy"`.
214+
API values: `"off"`, `"lossless"`, `"lossy"`, `"webp"`.
214215

215216
```json title="API configuration example"
216217
"action_parameters": {
217-
"polish": "lossless"
218+
"polish": "webp"
218219
}
219220
```
220221

0 commit comments

Comments
 (0)