wp-media / wp-rocket

Performance optimization plugin for WordPress
https://wp-rocket.me
GNU General Public License v2.0
700 stars 218 forks source link

WebP cache disabled when EWWW is enabled (without serving WebP) #4372

Open DahmaniAdame opened 3 years ago

DahmaniAdame commented 3 years ago

Before submitting an issue please check that you’ve completed the following steps:

Describe the bug In a domain using Cloudflare, when EWWW is enabled without any option to serve WebP, WP Rocket has the WebP Cache grayed out.

To Reproduce Steps to reproduce the behavior:

  1. Use a website with Cloudflare managing the DNS
  2. Enable EWWW without any option to server WebP
  3. See error

Expected behavior WebP Cache should be usable when none of WebP serving options is enabled.

Screenshots N/A

Additional context N/A

Backlog Grooming (for WP Media dev team use only)

Mai-Saad commented 3 years ago

On the test site, our webP is enabled if we disabled everything related to webP at the EWWW plugin.

DahmaniAdame commented 3 years ago

I had a chance to do more testing. I can confirm that the issue only happens when Cloudflare is detected by EWWW. I manually removed all Cloudflare checks on EWWW. This resulted in bringing back the WebP Cache on WP Rocket Updated the issue. @Mai-Saad the issue can only be seen if Cloudflare is enabled.

WordPresseur commented 3 years ago

Related ticket: https://secure.helpscout.net/conversation/1675322214/303817/

WordPresseur commented 2 years ago

Related: https://secure.helpscout.net/conversation/1992687473/364731/

viobru commented 2 years ago

Related: https://secure.helpscout.net/conversation/2021196231/371234/

milllan commented 1 year ago

@DahmaniAdame Hi. How did you remove Cloudflare checks on EWWW IO? I am having the same issue with Cloudflare \EWWW IO combo

edit: common.php, function ewwwio_is_cf_host() to return false ...

DahmaniAdame commented 1 year ago

@milllan sorry for the delay.

common.php, function ewwwio_is_cf_host() to return false ...

Yes. That's it :)

sandyfigueroa commented 4 months ago

Related: https://wp-media.slack.com/archives/C08N8J6VC/p1717013278667159?thread_ts=1716529807.409309&cid=C08N8J6VC

suzoutlet commented 4 months ago

Related: https://secure.helpscout.net/conversation/2644128195/501106/