Cloudflare
-
Hi Mateusz,
Does your plugin work when a site is served through cloudflare ?
Thanks,
John
-
Hi @john-mulder,
Thank you for your message.
Do you use CDN for images or is the entire site on Cloudflare?
Hi Mateusz,
The entire site is on cloudflare.
I must admit that I have not tested this case. Can you check it and report any problems?
OK, will do on my staging site, later this week_end. Will report back.
Hi Mateusz,
Managed to do it earlier. My site ran on imagify and a page had following results on GT metrix: B83 C78 page size 1,14 MB, 114 requests. With imagify off, cache flushed:
B87 C76 page size 1,05 MB, 101 requests.
I installed your plugin, regenerated the images, flushed the cache: results
B87 C76, page size 1,05 MB, 101 requests. Exactly the same as without the plugin.
Must say that my images are already fairly optimized. Google dev tools indicate: On the page are 18 images and of these 18 images the formats are: 2 GIF, 6 WebP, 6 jpeg, 3 PNG and 1 SVG.I guess you can validate these results better than i can. I at least can not see any problem caused by cloudflare. On the other hand no benefits from the plugun either.
Thanks,
JohnHi @john-mulder,
Thank you for your message. I will try to help you. Follow these steps:
1. Check if in
/wp-content/uploads-webpc/directory are all files that should be converted.If not, please enable
WP_DEBUG_LOGin yourwp-config.php(more about debugging: https://codex.wordpress.org/WP_DEBUG). That’s what you should have in this file:define('WP_DEBUG', true); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false);Next click
Regenerate Allon settings page of plugin. Do you have any errors in/wp-content/debug.log?2. URL of your website. If your site is not publicly available, add it to test environment.
3. Configuration of your server (link to it can be found on the settings page of plugin in the “We are waiting for your message” section) – please take a screenshot of the ENTIRE page and send it to me.
Directly URL:
/wp-admin/options-general.php?page=webpc_admin_page&action=server4. Content of your
.htaccessfile.5. Check in configuration of your server if you have enabled modules
mod_mime,mod_rewriteandmod_expires. Please contact your hosting provider in this case.When sending your answer, keep the numbers from 1 to 5. Please answer exactly every question.
Hi Mateusz,
Thanks for the help offered, but after a good nights sleep i suspected a (with hindsight very obvious) reason for not all images being transferred into webp.
I scaled some images directly in my pagebuilder (elementor). Those images show op as “imagefghjkdfghjfghjkl.jpeg” whereas when the image is not scaled in elementor it shows like “image.jpeg.webp”, elementor adding a range of characters to the name after rescaling. Which means that i should scale the image in wordpress or offline in a another image processing piece of software. That is a shame because when using the same picture more than once in different scalings, you now need to have more than one version of the image uploaded, whereas with the scaling in the pagebuilder one version would do.Ofcourse this is not something that is up to your plugin, but makes me wonder whether it is worth while to duplicate images and have them in their final scalings.
Thanks,
JohnIn this situation, it will be difficult to find a solution to this situation. The plugin needs the original image URLs.
The topic ‘Cloudflare’ is closed to new replies.