• Resolved gati2012

    (@gati2012)


    Image WebP Replacement: On
    In page source:

    <img data-lazyloaded="1" src="https://static.site.com/wp-content/uploads/2020/07/image-336x200.jpg" width="336" height="200" data-src="https://static.site.com/wp-content/uploads/2020/07/image-336x200.jpg" class="image wp-post-image no-display appear litespeed-loaded" alt="" title="title" data-was-processed="true">

    https://static.site.com/wp-content/uploads/2020/07/image-336×200.jpg – ok
    https://static.site.com/wp-content/uploads/2020/07/image-336×200.jpg.webp – ok

    htaccess:

    ### marker WEBP start ###
    RewriteCond %{HTTP_ACCEPT} "image/webp" [or]
    RewriteCond %{HTTP_USER_AGENT} "Page Speed"
    RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp]
    ### marker WEBP end ###

    Image optimized to Webp, but not replaced. Why? What i need to do?

    • This topic was modified 5 years, 5 months ago by gati2012.
    • This topic was modified 5 years, 5 months ago by gati2012.
Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Is that CDN-like sub domain for static resources only ?

    I assume you have http://www.domain.com , then load images on static.domain.com ?

    if so , was that URL replacement done by LSCWP’s CDN feature ?

    Best regards,

    Thread Starter gati2012

    (@gati2012)

    I use bunnycdn.

    If i disable CDN i also have not replaced to webp images

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    please provide the report number, you can get it in toolbox —> report , click “send to LiteSpeed”

    when you disable CDN , I assume it is loading as origin URL ? as domain.com/image, instead of static.domain.com/image ?

    Best regards,

    Thread Starter gati2012

    (@gati2012)

    <img data-lazyloaded="1" src="https://static.site.com/wp-content/uploads/2020/07/Rebuild-214x140.jpg" width="214" height="140" data-src="https://static.site.com/wp-content/uploads/2020/07/Rebuild-214x140.jpg" class="image wp-post-image no-display litespeed-loaded appear" alt="" title="Rebuild" data-srcset="https://static.site.com/wp-content/uploads/2020/07/Rebuild-214x140.jpg.webp 214w, https://static.site.com/wp-content/uploads/2020/07/Rebuild-104x69.jpg.webp 104w, https://static.site.com/wp-content/uploads/2020/07/Rebuild-702x459.jpg.webp 702w" data-sizes="(max-width: 214px) 100vw, 214px" sizes="(max-width: 214px) 100vw, 214px" srcset="https://static.site.com/wp-content/uploads/2020/07/Rebuild-214x140.jpg.webp 214w, https://static.site.com/wp-content/uploads/2020/07/Rebuild-104x69.jpg.webp 104w, https://static.site.com/wp-content/uploads/2020/07/Rebuild-702x459.jpg.webp 702w" data-was-processed="true">

    another example. first image is not webp, but webp version exist and work correct

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Please provide the report number.

    and also disable this static.site.com domain for the moment.

    make sure you see webp on original domian first.

    Best regards,

    Thread Starter gati2012

    (@gati2012)

    hm, disable cdn and it’s rewrite it

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    You mean if disable CDN , all links rewrote to webp link ?

    by “disable CDN” , which plugin ? are you using BunnyCDN plugin?

    Best regards

    Thread Starter gati2012

    (@gati2012)

    BunnyCDN plugin using. Yes all rewrited without plugin. But now i setup cdn setting and url not rewrite to cdn with litespeed plugin((

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    please check following:

    1. make sure BunnyCDN plugin is disabled.

    2. make sure LSCWP CDN feature is turned ON

    3. make sure CDN URL is set to https://static.domain.com/

    4. make sure Origin URL is set to //domain.com/

    most importantly: do not miss any / at beginning and at end of URL, use exact format as I showed

    after you made change , do a purge all

    Best regards,

    • This reply was modified 5 years, 5 months ago by qtwrk.
    • This reply was modified 5 years, 5 months ago by qtwrk.
    Thread Starter gati2012

    (@gati2012)

    Wow. Thanks you! All work.

    Plugin Support qtwrk

    (@qtwrk)

    glad to know πŸ™‚

    Thread Starter gati2012

    (@gati2012)

    Sorry, another question… Plugin ampforwp generate amp pages. At amp pages images not rewrited to webp, but rewrite url to cdn server.

    Thread Starter gati2012

    (@gati2012)

    @qtwrk can you help with webp on amp pages? πŸ™‚

    Thread Starter gati2012

    (@gati2012)

    Please close it. I think need create another topic

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Not replace image to Webp’ is closed to new replies.