• Resolved atesz03

    (@atesz03)


    Hello,

    I created a webp-version of all my images using the QUIC.cloud and the Image WebP Replacement toggle is turned on. But if I check my pages with google chrome inspect funtion, I only see jpeg-files. So the replacement doesn’t seem to have any effect. See screenshot here.

    In the debug report I can see the following:

    ### marker WEBP start ###
    RewriteCond %{HTTP_ACCEPT} “image/webp”
    RewriteRule .* – [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp]
    RewriteCond %{HTTP_USER_AGENT} iPhone.Version/(\d{2}).Safari
    RewriteCond %1 >13
    RewriteRule .* – [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp]
    ### marker WEBP end ###

    Do you have an idea what can be the problem?
    Thank you in advance for the help!

    • This topic was modified 1 year, 8 months ago by atesz03.
Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Support qtwrk

    (@qtwrk)

    please provide the report number

    you can get it in toolbox -> report -> click “send to LiteSpeed”

    and also please check in image optimization summary page, make sure all of your images are optm’ed

    Thread Starter atesz03

    (@atesz03)

    Report number:?ZSRVUPJB

    the image optimization has been ended sucessfully

    Plugin Support qtwrk

    (@qtwrk)

    did you enable webp replacement before you start to image optm ?

    and in your file system , under /wp-content/uploads , do you see any webp files?

    Thread Starter atesz03

    (@atesz03)

    1. good question, i’m not sure if I turned it on later, during the optimizing process
    2. yes, this is what I see next to all images in the media uploads:

    i?Orig?(no savings)
    i?WebP saved 62%?(optm)
    Restore from backup

    Plugin Support qtwrk

    (@qtwrk)

    if the webp option was enabled after you started optm , then image optimized before you enable it , will not have webp

    please check directly in file system , by FTP , SSH or control panel file manager , it’s more accurate

    Thread Starter atesz03

    (@atesz03)

    i′ve checked the uploads folder in cPanel/File Manager. I can comfirm that I see webp files. But definitely not for all of my images.

    Shall I destroy all of the optimized images and omptimize them again while I keep the webp replacement?option ON?

    Plugin Support qtwrk

    (@qtwrk)

    well, you could try , but sometimes some image just won’t have the webp version though.

    Thread Starter atesz03

    (@atesz03)

    Hi @qtwrk ,

    I destroyed all the optimized images and and recreated them again with the webp replacement option on. All the images were converted because I see them in the uploads directory in cPanel.

    But the webp files won’t load in the browser for some reason. None of them, without exeption. I’ve checked in different browsers and all of them are modern ones with webp support.

    So I destroyed the optimized images again, turned off the image optimization completely and tried my luck with another image converter plugin.

    This plugin showed me this error code:

    It seems that your server uses the cache for HTTP requests. The rules from the .htaccess file or from the Nginx configuration are not executed every time the image is loaded, but the last redirect from the cache is executed.

    Please contact your hosting support or CDN support and send them the following message:

    I have a problem with the cache for HTTP requests on my website. It is preventing the dynamic redirection of JPEG or PNG files to WebP or AVIF, depending on whether the browser supports the format.

    Here are possible sources for this problem:

    – the server or CDN server does not support the “Vary: Accept” HTTP header or handles it incorrectly (the cache for redirects should not only be based on the URL to the file, but also on the value of the Accept header sent by the browser)

    – the server or CDN server does not support or incorrectly handles the “Cache-Control: private” HTTP header (this header should be able to disable the cache for static files on the CDN server or proxy server)

    I don’t have a Litespeed server so I’m using the Litespeed cache plugin with the Quic-Cloud CDN. Maybe this is the problem why my webp images won’t load in the browser. Maybe there are some CDN-settings in the Quic-Cloud which would help.

    Can you help me with this issue?

    Plugin Support qtwrk

    (@qtwrk)

    emmm, your site is in kind of “coming soon” mode , I can not actually view any page

    Thread Starter atesz03

    (@atesz03)

    Hi @qtwrk, tnak you for the quick response. I disabled the Maintenance Mode so now you should be able to check it

    Plugin Support qtwrk

    (@qtwrk)

    /wp-content/uploads/2023/04/PXL_20230322_1239284761-scaled.jpg

    for example this one , I don’t see it has webp version , what does it show in your file system ?

    Thread Starter atesz03

    (@atesz03)

    As a wrote I destroyed the webp files in order to try out another plugin. I can enable it again and let you know when it`s finished so you can check them again.

    Plugin Support qtwrk

    (@qtwrk)

    hmmm? what’s the format of other image plugin ?

    in our case, we make it like something.jpg to something.jpg.webp , how does other plugin do ?

    maybe something.webp ?

    Thread Starter atesz03

    (@atesz03)

    The plugin doesn’t do anything just gave me this error code what I copied above. If I bypass the Quic CDN, the error code disappears and it works again. But I would like to use both: the CDN cache and webP images as well

    Plugin Support qtwrk

    (@qtwrk)

    ohhhhh , sorry for my bluntness and slow thinking , now finally it sinks me the situation

    may I know which plugin that is ? I will check around a bit.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Image WebP Replacement doesn′t work’ is closed to new replies.