• Resolved Cloud

    (@marionnex)


    Hello, I need help with image optimization.
    For some reason, whenever I try to visit the site, it doesn’t serve webp images even if the settings say otherwise.

    There are also times where webp only shows when you hard refresh the page (ctrl+F5)

    Settings: UCSS and CCSS off.
    Guest mode and enhanced on.
    Crawlers on.
    Everything on JS is on and is delayed.

    I am also using cloudflare.
    Please help,
    Thank you.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

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

    Best regards,

    Thread Starter Cloud

    (@marionnex)

    Thank you for your response.
    Report number: RNGZNUBT

    Plugin Support qtwrk

    (@qtwrk)

    you have some additional cache laying that is messing up with LiteSpeed Cache

    as shown in my screenshot

    you have browser cache , and also cloudflare cache , and also some other cache I am not sure what are they

    when LSCWP does webp replacement , it will check the browser support , so there will be 2 caches for one page , one cache with webp , one cache without webp

    but if someone accessed the page with no-webp first and cloudfalre cached , then all following visitor will get that no-webp cache on CF nodes

    same apply to browser cache as if you hard refresh will get it work as it clears browser cache

    please make this cache-control header to value no-cache, must-revalidate, max-age=0 , and then disable all other cache layer

    Thread Starter Cloud

    (@marionnex)

    I have temporarily turned UCSS on.
    Also, maybe this would help. The cache setting on Cloudflare is “cache everything” since everything is static. Also “Purge all” on Cloudflare removes everything but will then again serve the original images. I can only show the webp versions when I purge per URL on cloudflare. It’s so weird really, I don’t understand.

    Plugin Support qtwrk

    (@qtwrk)

    please check my above reply

    Thread Starter Cloud

    (@marionnex)

    Hello, I have updated the settings on Cloudflare to “respect origin header”.
    And I think I have found the actual reason as to why it is serving the original images.
    https://gcdnb.pbrd.co/images/KdNav6vTOxYC.jpg?o=1
    That’s an image of what I am talking bout.

    I really hope there’s a way to get around with this.
    It’s working now if the cache status from Cloudflare is Dynamic instead of a HIT

    Plugin Support qtwrk

    (@qtwrk)

    It’s working now if the cache status from Cloudflare is Dynamic instead of a HIT

    that’s exactly the issue I mentioned above

    when you have other cache in front of plugin , plugin won’t be able to vary the page and serve the correct version

    Thread Starter Cloud

    (@marionnex)

    Update about it. For some reason, after some time, I think about an hour after purging all. Everything goes back to the original except Frontpage. This may be beyond your support but I am not exactly sure what’s causing it.
    Cloudflare is now following my TTLs.

    Plugin Support qtwrk

    (@qtwrk)

    one thing you can do as quick check is to set cloudflare proxy to off , then you will see if the issue is lays on LSCWP, or CF interfered

    best regards,

    Thread Starter Cloud

    (@marionnex)

    Hello, thank you for your response.
    So basically, I have fixed the error though I almost messed up Litespeed web admin. I was able to revert all changes I made on port 7080.
    It is actually CloudFront that was causing it.
    Previously, before I activated Cloudflare, AWS was on, and to tell you the truth, I was actually using 2 CDNs which I was kind of aware but I didn’t really think that it would create an issue. After some time, I totally forgot about Cloudfront still active.

    I went ahead and remove all custom cnames, removed AWS certs and deleted some cache settings on AWS. I have deactivated the CDN feature on the Litespeed cache and there ya go. I am now able to use webp with the “cache everything” page rule on Cloudflare…

    Thanks so much for your help. It was actually messing up the cache.
    More power!

    Plugin Support qtwrk

    (@qtwrk)

    don’t use cache everything rule …

    you will have issue between webp browser and non webp broser

    imagine I use an android phone accessed your page , and CF cached webp link in the HTML , everything is good here , but then , someone , with pre-iOS-14 iPhone/iPad which doesn’t support webp , accessed this same page , then CF will serve the same page that comes with webp link , then no image will be displayed in this iOS device.

    Thread Starter Cloud

    (@marionnex)

    I see…
    Hmmm. Thanks for the advice.
    Imma have to turn that thing off then.
    You are great!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Not all are converted to webp’ is closed to new replies.