• Resolved rom174

    (@rom174)


    Hello,

    I finally managed to make it works because I can see that images are served as webp type (and are far lighter than the original).

    I have 2 questions :

    1/ On each page, only a few images are served as webp, 2 or 3 each loads, would you know why the other ones are still served as jpg or png ?

    2/ I am on a CDN, following your advices, the logic of the ‘WebP Converter For Media’ doesn’t stick with the use of CDN. I expected to have hard time to make it work, fortunatly it works but why do I have webp images served if it is not intended to work with CDN ? Is the behavior experienced in first question can be linked with it ? Like webp images propagation across CDNs or something like this ?

    Thank you for your advices

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Hi @rom174,

    Thank you for your message.

    1. Can you provide a link to your site? It doesn’t matter how often you load files. Their exchange is managed by the server using the rules saved in the .htaccess file.

    2. This is about CDN, when you store image files on another server. Then we don’t have access to it and we can’t do anything. Probably all your site is on CDN, right? Then it will work.

    Thread Starter rom174

    (@rom174)

    Hello @mateuszgbiorczyk

    Thank you very much for your reply !

    Where can I contact you to send you the link ?

    1/ Just to be sure, what I meant is at each loading/reloading page, I only have 1, 2 or 3 webp images over 23 (for instance) images. All the others are served as jpg, jpeg or png while their webp version well exists. So, what I don’t understand is that the rules are exactly the same for each images but only 1, 2 or 3 of them seems to be affected in each pages.

    2/ Yes all the site should be on a CDN, I was trying to check it but it is kindly hard because I don’t manage CDN propagation, it is manage by the hoster. I tried to CURL a random file and I saw it is hosted in Canada, so if the first random file is there, I guess it is ok for the whole site.

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    On my profile at www.ads-software.com you will find a link to my website. And there is an e-mail address.

    1. Do you use something to compress your images? Remember that if the converted photo is larger than the original one, the original one will be used.

    Thread Starter rom174

    (@rom174)

    Yes I have used a software to compress it.
    It decreased the size from 1400mo to 400mo, so I can say almost for sure every pictures have been optimized.
    I have send you an email.

    Thanks again

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    I checked it out. On the main page you have 4 photos uploaded from the /wp-content/uploads/ directory. They are loaded in WebP format, although it also happened to me that they showed up as JPEG (only once).

    However, this looks like some server error. Some built-in cache – it’s hard to say. Please contact your server administrator.

    Thread Starter rom174

    (@rom174)

    Hello @mateuszgbiorczyk

    you have 4 photos uploaded from the /wp-content/uploads/ directory. They are loaded in WebP format, although it also happened to me that they showed up as JPEG (only once).

    Well, very interesting that you say it because for me that was the fact there is an “implicite” rewritted URL due to the rewrite rule in htaccess. This is how I was thinking it works, let me know where I am wrong : when the original url is requested, the server first checks if the equivalent webp format exists if it exists, it serves the webp image BUT WITHOUT adding a ressource line to the waterfall, so the original URL of the original image is displayed.
    From my side, I always see images coming from /wp-content/uploads/ with .jpg/.png extensions but the type let me know if it is webp or jpg. The weird thing is that 2.5 days later, there are still jpg/png type instead only webp type in the images served by CDN.

    However, this looks like some server error. Some built-in cache – it’s hard to say. Please contact your server administrator.

    Do you mean the fact the images come from the /wp-content/uploads/ directory instead of /wp-content/uploads-webpc/ directory is a server error ?
    Should I really see the images coming from /wp-content/uploads-webpc/ ?

    • This reply was modified 4 years, 10 months ago by rom174.
    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    URLs are rewritten implicitly. The only thing you see in Dev Tools is Content-Type – it’s changed to image/webp. That’s the whole “magic” of this plugin, that the URLs remain unchanged and you don’t have any 301 redirects.

    You should see images loaded from the /wp-content/uploads/ directory, but they will actually be implicitly loaded from /wp-content/uploads-webpc/. Content-Type will differ.

    Thread Starter rom174

    (@rom174)

    We agree.
    Thank you for the support

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Only a few images are served as webp’ is closed to new replies.