• Resolved soberpaddy

    (@soberpaddy)


    Hi there,
    I am trying to optimize the images which are loading on this site, but cannot see them as served in WebP. I am using Beaver Builder page builder.

    I have followed all the steps on this page:
    https://docs.litespeedtech.com/lscache/lscwp/ts-media/

    I am attaching the error log here in case you can see what is going on.
    Any ideas why the images are not optimising from this?

    01/18/24 06:54:58.871 [45.63.36.93:46218 1 ENR] ?? ------POST HTTP/1.1 (HTTPS) /wp-admin/admin-ajax.php
    01/18/24 06:54:58.871 [45.63.36.93:46218 1 ENR] Query String: action=async_litespeed&nonce=e1e8af70ff&litespeed_type=imgoptm
    01/18/24 06:54:58.871 [45.63.36.93:46218 1 ENR] User Agent: WordPress/6.4.2; https://testsite.sbrannonconsulting.com
    01/18/24 06:54:58.871 [45.63.36.93:46218 1 ENR] Accept: */*
    01/18/24 06:54:58.871 [45.63.36.93:46218 1 ENR] Accept Encoding: deflate, gzip, br, zstd
    01/18/24 06:54:58.871 [45.63.36.93:46218 1 ENR] X-LSCACHE: true
    01/18/24 06:54:58.871 [45.63.36.93:46218 1 ENR] LSCACHE_VARY_COOKIE: ,wp-postpass_2aa6b0db8491b35155d04e2d019d13a4
    01/18/24 06:54:58.886 [45.63.36.93:46218 1 ENR] ?? No cache due to Admin page
    01/18/24 06:54:58.957 [45.63.36.93:46218 1 ENR] [Media] init
    01/18/24 06:54:58.958 [45.63.36.93:46218 1 ENR] [LQIP] init
    01/18/24 06:54:58.958 [45.63.36.93:46218 1 ENR] [CDN] init
    01/18/24 06:54:58.958 [45.63.36.93:46218 1 ENR] ? Init
    01/18/24 06:54:58.958 [45.63.36.93:46218 1 ENR] [Router] LSCWP_CTRL bypassed empty
    01/18/24 06:54:58.976 [45.63.36.93:46218 1 ENR] [Router] parsed type: imgoptm => LiteSpeed\Router::verify_type()@475 => LiteSpeed\Task::async_litespeed_handler()@79 => WP_Hook->apply_filters(,ARRAY)@324
    01/18/24 06:54:58.977 [45.63.36.93:46218 1 ENR] ? type=imgoptm
    01/18/24 06:54:58.977 [45.63.36.93:46218 1 ENR] ??? ------------async-------------start_async_handler
    01/18/24 06:54:58.977 [45.63.36.93:46218 1 ENR] ??? ? no need pull [tag] 9
    01/18/24 06:54:58.977 [45.63.36.93:46218 1 ENR] ?? [Tag] Add --- HTTP.200
    01/18/24 06:54:58.977 [45.63.36.93:46218 1 ENR] [Core] CHK html bypass: miss footer const
    01/18/24 06:54:58.977 [45.63.36.93:46218 1 ENR] [Ctrl] not cacheable before ctrl finalize
    01/18/24 06:54:58.977 [45.63.36.93:46218 1 ENR] [Router] get_role:
    01/18/24 06:54:58.977 [45.63.36.93:46218 1 ENR] [Vary] role id: failed, guest
    01/18/24 06:54:58.978 [45.63.36.93:46218 1 ENR] [Router] get_role:
    01/18/24 06:54:58.978 [45.63.36.93:46218 1 ENR] [Vary] no custimzed vary
    01/18/24 06:54:58.978 [45.63.36.93:46218 1 ENR] [Ctrl] ? forced no cache [reason] DONOTCACHEPAGE const
    01/18/24 06:54:58.978 [45.63.36.93:46218 1 ENR] ?? X-LiteSpeed-Cache-Control: no-cache
    01/18/24 06:54:58.978 [45.63.36.93:46218 1 ENR] [Router] get_role:
    01/18/24 06:54:58.978 [45.63.36.93:46218 1 ENR] [Vary] role id: failed, guest
    01/18/24 06:54:58.978 [45.63.36.93:46218 1 ENR] [Router] get_role:
    01/18/24 06:54:58.978 [45.63.36.93:46218 1 ENR] [Core] CHK html bypass: miss footer const
    01/18/24 06:54:58.978 [45.63.36.93:46218 1 ENR] [Core] run hook litespeed_buffer_finalize
    01/18/24 06:54:58.978 [45.63.36.93:46218 1 ENR] [Core] Silence Comment due to REST/AJAX
    01/18/24 06:54:58.978 [45.63.36.93:46218 1 ENR] Response headers --- array (
    0 => 'Content-Type: text/html; charset=UTF-8',
    1 => 'X-Robots-Tag: noindex',
    2 => 'X-Content-Type-Options: nosniff',
    3 => 'Referrer-Policy: strict-origin-when-cross-origin',
    4 => 'X-Frame-Options: SAMEORIGIN',
    5 => 'X-LiteSpeed-Tag: 9b8_HTTP.200',
    6 => 'Expires: Wed, 11 Jan 1984 05:00:00 GMT',
    7 => 'Cache-Control: no-cache, must-revalidate, max-age=0',
    8 => 'X-LiteSpeed-Cache-Control: no-cache',
    )
    01/18/24 06:54:58.979 [45.63.36.93:46218 1 ENR] End response
    --------------------------------------------------Duration: 108.81 ms------------------------------
    
    
    
    
    
    01/18/24 06:55:13.158 [45.133.7.5:46031 1 aCH] ?? ------GET HTTP/1.1 (HTTPS) /wp-admin/admin.php
    01/18/24 06:55:13.158 [45.133.7.5:46031 1 aCH] Query String: page=litespeed-toolbox&LSCWP_CTRL=purge&LSCWP_NONCE=8b69ba77f5&litespeed_type=purge_all_lscache
    01/18/24 06:55:13.158 [45.133.7.5:46031 1 aCH] HTTP_REFERER: https://testsite.sbrannonconsulting.com/wp-admin/admin.php?page=litespeed-toolbox
    01/18/24 06:55:13.158 [45.133.7.5:46031 1 aCH] User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
    01/18/24 06:55:13.158 [45.133.7.5:46031 1 aCH] Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
    01/18/24 06:55:13.158 [45.133.7.5:46031 1 aCH] Accept Encoding: gzip, deflate, br
    01/18/24 06:55:13.158 [45.133.7.5:46031 1 aCH] Cookie _lscache_vary: 2f1c8a91b280a9eab388bfb55912bf2b
    01/18/24 06:55:13.158 [45.133.7.5:46031 1 aCH] X-LSCACHE: true
    01/18/24 06:55:13.158 [45.133.7.5:46031 1 aCH] LSCACHE_VARY_COOKIE: ,wp-postpass_2aa6b0db8491b35155d04e2d019d13a4
    01/18/24 06:55:13.158 [45.133.7.5:46031 1 aCH] LSCACHE_VARY_VALUE: +webp
    01/18/24 06:55:13.185 [45.133.7.5:46031 1 aCH] ?? No cache due to Admin page
    01/18/24 06:55:13.281 [45.133.7.5:46031 1 aCH] [Ctrl] X Cache_control -> private ( logged in user )
    01/18/24 06:55:13.281 [45.133.7.5:46031 1 aCH] [Media] init
    01/18/24 06:55:13.282 [45.133.7.5:46031 1 aCH] [LQIP] init
    01/18/24 06:55:13.282 [45.133.7.5:46031 1 aCH] [CDN] init
    01/18/24 06:55:13.282 [45.133.7.5:46031 1 aCH] [Router] CDN bypassed: is not ajax call
    01/18/24 06:55:13.282 [45.133.7.5:46031 1 aCH] [Router] CDN bypassed: ajax call from admin
    01/18/24 06:55:13.283 [45.133.7.5:46031 1 aCH] ? Init
    01/18/24 06:55:13.283 [45.133.7.5:46031 1 aCH] [Router] LSCWP_CTRL: purge
    01/18/24 06:55:13.283 [45.133.7.5:46031 1 aCH] [Router] LSCWP_CTRL verified: 'purge'
    01/18/24 06:55:13.283 [45.133.7.5:46031 1 aCH] [Router] parsed type: purge_all_lscache => LiteSpeed\Router::verify_type()@475 => LiteSpeed\Purge->handler()@100 => LiteSpeed\Router->handler(purge)@765
    01/18/24 06:55:13.283 [45.133.7.5:46031 1 aCH] ?? added * => LiteSpeed\Root::debug(?? added *,8)@51 => LiteSpeed\Purge->_add(ARRAY)@501 => LiteSpeed\Purge->_purge_all_lscache()@231 => LiteSpeed\Purge->handler()@108 => LiteSpeed\Router->handler(purge)@765 => LiteSpeed\LSC->proceed_action(purge)@354 => LiteSpeed\LSC->after_user_init()@301 => WP_Hook->apply_filters(ARRAY)@324 => WP_Hook->do_action(ARRAY)@348
    01/18/24 06:55:13.283 [45.133.7.5:46031 1 aCH] ?? X-LiteSpeed-Purge: public,9b8_
    01/18/24 06:55:13.285 [45.133.7.5:46031 1 aCH] ?? [Tag] Add --- HTTP.302
    01/18/24 06:55:13.286 [45.133.7.5:46031 1 aCH] [Core] CHK html bypass: miss footer const
    01/18/24 06:55:13.286 [45.133.7.5:46031 1 aCH] [Ctrl] not cacheable before ctrl finalize
    01/18/24 06:55:13.286 [45.133.7.5:46031 1 aCH] [Router] get_role: administrator
    01/18/24 06:55:13.286 [45.133.7.5:46031 1 aCH] [Vary] role in vary_group [group] 99
    01/18/24 06:55:13.286 [45.133.7.5:46031 1 aCH] [Vary] show_admin_bar_front: true
    01/18/24 06:55:13.286 [45.133.7.5:46031 1 aCH] [Vary] admin bar : true
    01/18/24 06:55:13.286 [45.133.7.5:46031 1 aCH] [Vary] set_cookie ---> admin_bar:1;logged-in:1;role:99
    01/18/24 06:55:13.286 [45.133.7.5:46031 1 aCH] [Vary] no custimzed vary
    01/18/24 06:55:13.287 [45.133.7.5:46031 1 aCH] [Ctrl] ? forced no cache [reason] DONOTCACHEPAGE const
    01/18/24 06:55:13.287 [45.133.7.5:46031 1 aCH] ?? X-LiteSpeed-Cache-Control: no-cache
    01/18/24 06:55:13.287 [45.133.7.5:46031 1 aCH] ?? X-LiteSpeed-Purge: public,9b8_
    01/18/24 06:55:13.287 [45.133.7.5:46031 1 aCH] [Vary] uid: 1
    01/18/24 06:55:13.287 [45.133.7.5:46031 1 aCH] [Vary] role in vary_group [group] 99
    01/18/24 06:55:13.288 [45.133.7.5:46031 1 aCH] [Vary] show_admin_bar_front: true
    01/18/24 06:55:13.288 [45.133.7.5:46031 1 aCH] [Vary] admin bar : true
    01/18/24 06:55:13.288 [45.133.7.5:46031 1 aCH] [Core] CHK html bypass: miss footer const
    01/18/24 06:55:13.288 [45.133.7.5:46031 1 aCH] [Core] run hook litespeed_buffer_finalize
    01/18/24 06:55:13.288 [45.133.7.5:46031 1 aCH] Response headers --- array (
    0 => 'X-LiteSpeed-Tag: 9b8_tag_priv,public:9b8_HTTP.302',
    1 => 'X-Redirect-By: WordPress',
    2 => 'Location: https://testsite.sbrannonconsulting.com/wp-admin/admin.php?page=litespeed-toolbox',
    3 => 'Set-Cookie: _lscache_vary=admin_bar%3A1%3Blogged-in%3A1%3Brole%3A99; expires=Sat, 20-Jan-2024 06:55:13 GMT; Max-Age=172800; path=/; secure; HttpOnly',
    4 => 'X-LiteSpeed-Cache-Control: no-cache',
    5 => 'X-LiteSpeed-Purge: public,9b8_',
    )
    01/18/24 06:55:13.288 [45.133.7.5:46031 1 aCH] End response
    --------------------------------------------------Duration: 132.13 ms------------------------------
    
    01/18/24 06:55:13.533 [45.133.7.5:46031 1 tFF] ?? ------GET HTTP/1.1 (HTTPS) /wp-admin/admin.php
    01/18/24 06:55:13.533 [45.133.7.5:46031 1 tFF] Query String: page=litespeed-toolbox
    01/18/24 06:55:13.533 [45.133.7.5:46031 1 tFF] HTTP_REFERER: https://testsite.sbrannonconsulting.com/wp-admin/admin.php?page=litespeed-toolbox
    01/18/24 06:55:13.533 [45.133.7.5:46031 1 tFF] User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
    01/18/24 06:55:13.533 [45.133.7.5:46031 1 tFF] Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
    01/18/24 06:55:13.533 [45.133.7.5:46031 1 tFF] Accept Encoding: gzip, deflate, br
    01/18/24 06:55:13.533 [45.133.7.5:46031 1 tFF] Cookie _lscache_vary: admin_bar:1;logged-in:1;role:99
    01/18/24 06:55:13.533 [45.133.7.5:46031 1 tFF] X-LSCACHE: true
    01/18/24 06:55:13.533 [45.133.7.5:46031 1 tFF] LSCACHE_VARY_COOKIE: ,wp-postpass_2aa6b0db8491b35155d04e2d019d13a4
    01/18/24 06:55:13.533 [45.133.7.5:46031 1 tFF] LSCACHE_VARY_VALUE: +webp
    01/18/24 06:55:13.551 [45.133.7.5:46031 1 tFF] ?? No cache due to Admin page
    01/18/24 06:55:13.641 [45.133.7.5:46031 1 tFF] [Ctrl] X Cache_control -> private ( logged in user )
    01/18/24 06:55:13.641 [45.133.7.5:46031 1 tFF] [Media] init
    01/18/24 06:55:13.642 [45.133.7.5:46031 1 tFF] [LQIP] init
    01/18/24 06:55:13.643 [45.133.7.5:46031 1 tFF] [CDN] init
    01/18/24 06:55:13.643 [45.133.7.5:46031 1 tFF] [Router] CDN bypassed: is not ajax call
    01/18/24 06:55:13.643 [45.133.7.5:46031 1 tFF] [Router] CDN bypassed: ajax call from admin
    01/18/24 06:55:13.643 [45.133.7.5:46031 1 tFF] ? Init
    01/18/24 06:55:13.643 [45.133.7.5:46031 1 tFF] [Router] LSCWP_CTRL bypassed empty
    Clear Logs

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Please provide the report number
    You can get it in ToolBox -> Report -> Click “Send to LiteSpeed”

    Also, please send us a screenshot of your Image Optimization Summary page.

    Thread Starter soberpaddy

    (@soberpaddy)

    Hi there,

    I have deleted the caches etc a few times since the DEBUG. Here is the report.

    Report number:?NNZWDSBP
    Report date:?01/18/2024 08:22:50

    Here is a copy of the image for summary:

    https://pasteboard.co/yYxJN50vfN3E.png

    Thank you!

    As I can see all the images are already optimized and optimized images are loading fine on your website.
    Once you upload new images in Media Library then image optimization will send new request (make sure to set Auto request and Auto Pull to ON).

    Please also note that when the WebP format does not offer any significant reduction in file size compared to the original JPEG or PNG counterparts. In such cases, the WebP version is not generated as it does not provide any noticeable optimization.

    Thread Starter soberpaddy

    (@soberpaddy)

    Thank you for the reply.

    If you run it through the Google Speed tester, it shows that it is performing poorly, with the prime culprit for this, the images on the Desktop version.

    How can you see the optimzied images loading fine on the website?
    When I check I only see one webP image showing and the site is relatively slow to load.

    You can check using the Developer tools > Network > img

    Please check all the pages and you will see that images that are optimized are showing as webp.

    And, for the images that are showing as PNG, JPEG is because the WebP version is not generated as it does not provide any noticeable optimization.

    Thread Starter soberpaddy

    (@soberpaddy)

    I don’t see why a webP version is not being shown.
    Please see this Home Page hero PNG:
    https://pasteboard.co/Zi2F5r6i3eEg.png

    It shows the original gets 40% saved but the webP 91%.

    But when I review it in the network, it loads the png version – which is way bigger.
    https://pasteboard.co/nt3M97InNWhS.png

    Can you explain why this is happening?
    It appears that this is happening for most of the images on the site.

    thanks again

    Plugin Support qtwrk

    (@qtwrk)

    that is total group , some individual resized image may not have webp version , you can always attach .webp to check if it exists or not , for example

    https://doamin.com/wp-content/uploads/2024/01/something.jpg

    to

    https://doamin.com/wp-content/uploads/2024/01/something.jpg.webp

    also it depends on your image was loaded, currently only css backgroun-image() and <img tag works for sure , all other methods of loading image may or may not support

    Thread Starter soberpaddy

    (@soberpaddy)

    OK thank you for that insight.
    I will just use a different method for optimizing the images – not very user friendly using this method.
    Appreciate you taking the time to reply.

    Cheers!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Images not caching’ is closed to new replies.