Webp theme panel option issue with Caching

Posted in: Newspaper
Post count: 124

Hi Calin,

In addition to the previously reported bug with the Webp option in theme panel, I have found another bug.

Environment:

1. Theme version: 12.6.6

2. Webp format is generated by Ewww Image Optimizer as per your guide. – All images become Webp and all are lazyloaded.

4. For CWV / speed, we must disable lazyload for the first image (in the first flex or any block / logo is text). For this we use define( ‘EIO_LAZY_FOLD’, 1 ); in wp-config as per Ewww’s guide – under Exclude Images header.

5. The result is that the first image on the page converts to Web but is not lazyload – so this is correct. The Theme’s option Use Webp Format is meant to show this first image in Webp, because it exists on the server.

Issue:

The theme stops using the webp file for the first image when any caching system is on. This includes the “Cache block results” option on the block, WP super cache as per your guide.

How to test:

1. Make sure you have caching enabled – WP super cache as per your guide. Also can enable “Cache block results” on the actual block.

2. If you are logged-in, you will see a webp. If you are logged out – the theme will also be showing webp for some time, but a little later – once the cache is generated – the theme will start showing jpg (despite having webp on the server).

– I have tested this on various websites and demo sites. On the dev sites that do not have caching, there is no problems.

(!) As previously discussed, this post is only for Calin.

Other TD team members, please do not respond.

Thank you.

  • This topic was modified 2 years by Alex.
  • This topic was modified 2 years by Alex.
Post count: 35449

Hi,
I did a lot of tests for this issue, but unfortunately I was only able to recreate this situation once, so I can’t give you a solution now, I’m sorry.
We have put this situation on our list of bugs and it will be checked in more detail and once we detect where this situation comes from (why the webp format is no longer applied when a cache is used) our developers will come up with a solution to solve it .
Thank you for taking the time to test and inform us about this situation!

Post count: 124

Hi Calin,

In 12.6.7 your devs fixed this issue with webp on loop blocks, which is good.

But this issue with Webp and Caching is not fixed.

– You previously said you were only able to replicate it once.

To easily replicate it – logout of your dev site and in a few minutes inspect the html with image that is meant to load webp. It will ignore webp and show jpg/png or whatever is used..

Also if you run it through https://pagespeed.web.dev/ the error “Serve images in next-gen formats” will be reported as the url of the shown image is not webp.

Thank you.

Post count: 35449

Hi Alex,
I just received a reply from a developer, he stated that this most likely happens due to the fact that the disable lazyload option is used on the first image. What he suggested is to check if the situation happens only for that block or also for the rest and if it also happens on the mobile or only on the desktop, and if the situation is only ep that block then 99% is because of that option.
Thank you!

Post count: 124

Hi Calin,

Thank you for your reply.

It is because of this option – As per my original post in point 5 – for speed purposes, it is intended to not lazyload the first image and use webp file as the first image as per theme’s option.

Do they have a fix?

Post count: 35449

Hi Alex, for the moment this was everything that I got from them.
I just sent a message to them with your question, but I believe that if they had a fix I think that they should let us know how to implement it by now.
Thank you!

Post count: 10

@alex I have read your topics with interest, where you report issues, but you also come to request certain custom things.. okay, all good, but have you extended the support or are you just waiting to receive everything for free? I would like a system to be implemented so that only those of us who extend support have access to the forum

Post count: 124

Hi Calin,

Well, this means that another feature is not working as advertised and left with no fix.

Thank you.

Viewing 8 posts - 1 through 8 (of 8 total)
The forum ‘Newspaper’ is closed to new topics and replies.