Cloudflare Docs
Images
Visit Cloudflare Image Optimization on GitHub
Set theme to dark (⇧+D)

Activate Polish

Images in the cache must be purged or expired before seeing any changes in Polish settings.

  1. Log in to the Cloudflare dashboard and select the account and domain where you want to activate Polish.
  2. Click Speed > Optimization.
  3. Under Polish, select Lossy or Lossless from the drop-down menu.
  4. (Optional) Click 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 WebP at your origin web server when using Polish.