Title: webp and cloudflare
Last modified: April 23, 2019

---

# webp and cloudflare

 *  Resolved [bookfinder](https://wordpress.org/support/users/bookfinder/)
 * (@bookfinder)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/webp-and-cloudflare/)
 * Hi,
 * i see that you have added webp, which is great, but from my precedent research
   on the subject this doesn’t work with the free cloudflare CDN, unless excluding
   images from cloudflare with a custom rule.
 * Can you please confirm whether or not autoptimize webp option works with the 
   free cloudflare CDN?
 * Thank you.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwebp-and-cloudflare%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/webp-and-cloudflare/#post-11459628)
 * the short answer; I don’t know 🙂
 * the longer answer; the img in the HTML is still a normal jpg (or png or …) so
   to cloudflare those are non-webp images. upon the page being loaded the non-webp
   images swapped on-the-fly by JS for the WebP-version in browsers that support
   it. so I *guess* it should work.
 * the conclusion; why don’t you give it a try and report back here? 🙂
 *  [Gal Baras](https://wordpress.org/support/users/galbaras/)
 * (@galbaras)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/webp-and-cloudflare/#post-11472337)
 * EWWW Image Optimizer has a JS (alternate) serving mode for WEBP images that works
   with Cloudflare.
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/webp-and-cloudflare/#post-11472364)
 * interesting, in that case the AO one (which also uses JS) should work just fine
   as well 🙂
 *  [Gal Baras](https://wordpress.org/support/users/galbaras/)
 * (@galbaras)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/webp-and-cloudflare/#post-11472509)
 * [@bookfinder](https://wordpress.org/support/users/bookfinder/) please confirm
   that the WEBP options is turned on AND the WEBP images actually exist.
 * I’ve tested a couple of JPEG and a PNG image and they are “not found” when their
   extension is changed to “.webp” or when “.webp” is added to their original name.
 * If you’re using a paid CF plan, you can actually use Polish for image optimisation.
   See [https://support.cloudflare.com/hc/en-us/articles/360000607372-Using-Polish-to-compress-images-on-Cloudflare](https://support.cloudflare.com/hc/en-us/articles/360000607372-Using-Polish-to-compress-images-on-Cloudflare)
    -  This reply was modified 7 years, 1 month ago by [Gal Baras](https://wordpress.org/support/users/galbaras/).

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘webp and cloudflare’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

## Tags

 * [webp](https://wordpress.org/support/topic-tag/webp/)

 * 4 replies
 * 3 participants
 * Last reply from: [Gal Baras](https://wordpress.org/support/users/galbaras/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/webp-and-cloudflare/#post-11472509)
 * Status: resolved