webP not loading




Wordpress LScache Plugin: webP not loading

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hello I have a Digital ocean droplet with Openlitespeed. LS cache is installed and running. I have a cron job that optimises all .jpg and .png into webp formats, I am using cwebp. There are over 300,000 images and I could not get the image optimisation service with Litespeed to work, so produced them another way. You can look up the image path within the code snippet below and see that it is failing the bypass. Each image has the .webp format and is available on the same cdn that the current images are coming from The problem I am having is that the webp images are not loading. 04/26/19 06:43:31.823 [86.7.239.79:53106 1 Wf5] ------GET HTTP/1.1 (HTTPS) /cheap-or-free-wedding-fonts/ 04/26/19 06:43:31.823 [86.7.239.79:53106 1 Wf5] Query String: 04/26/19 06:43:31.823 [86.7.239.79:53106 1 Wf5] HTTP_REFERER: https://68.183.146.16/category/diy-projects/paper-and-stationery-diys/ 04/26/19 06:43:31.823 [86.7.239.79:53106 1 Wf5] User Agent: Mozilla/5.0 (Macintosh Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.108 Safari/537.36 04/26/19 06:43:31.823 [86.7.239.79:53106 1 Wf5] Accept: text/html,application/xhtml+xml,application/xml q=0.9,image/webp,image/apng, / q=0.8,application/signed-exchange v=b3 04/26/19 06:43:31.823 [86.7.239.79:53106 1 Wf5] Accept Encoding: gzip, deflate, br 04/26/19 06:43:31.823 [86.7.239.79:53106 1 Wf5] X-LSCACHE: true 04/26/19 06:43:31.839 [86.7.239.79:53106 1 Wf5] Media init 04/26/19 06:43:31.839 [86.7.239.79:53106 1 Wf5] [Router] get_uid: 0 => LSC_Router::get_uid()@203 => LSC_Router::get_role()@222 => LSC_Config->in_exclude_optimization_roles()@351 => LSC_Media->can_media()@96 04/26/19 06:43:31.839 [86.7.239.79:53106 1 Wf5] [Router] get_role: 04/26/19 06:43:31.839 [86.7.239.79:53106 1 Wf5] [Router] role: guest 04/26/19 06:43:31.840 [86.7.239.79:53106 1 Wf5] CDN init 04/26/19 06:43:31.840 [86.7.239.79:53106 1 Wf5] [CDN] mapping inc_img -> https://assets.thebudgetsavvybride.com/ 04/26/19 06:43:31.840 [86.7.239.79:53106 1 Wf5] [CDN] mapping inc_css -> https://assets.thebudgetsavvybride.com/ 04/26/19 06:43:31.840 [86.7.239.79:53106 1 Wf5] [CDN] mapping inc_js -> https://assets.thebudgetsavvybride.com/ 04/26/19 06:43:31.840 [86.7.239.79:53106 1 Wf5] [CDN] mapping .aac,.css,.eot,.gif,.jpeg,.js,.jpg,.less,.mp3,.mp4,.ogg,.otf,.pdf,.png,.webp,.svg,.ttf,.woff -> https://assets.thebudgetsavvybride.com/ 04/26/19 06:43:31.840 [86.7.239.79:53106 1 Wf5] Task init 04/26/19 06:43:31.840 [86.7.239.79:53106 1 Wf5] [Router] LSCWP_CTRL bypassed empty 04/26/19 06:43:31.840 [86.7.239.79:53106 1 Wf5] GUI init 04/26/19 06:43:31.863 [86.7.239.79:53106 1 Wf5] [Ctrl] X Cache_control init on 04/26/19 06:43:31.883 [86.7.239.79:53106 1 Wf5] [Media] webp replacing: https://assets.thebudgetsavvybride.com/wp-content/uploads/2017/04/wedding-fonts-1-1.png => LSC_Media->replace_webp()@785 => LSC_Media->webp_srcset()@768 => WP_Hook->apply_filters()@288 => /var/www/html/wp-includes/media.php@208 04/26/19 06:43:31.883 [86.7.239.79:53106 1 Wf5] [Util] external 04/26/19 06:43:31.883 [86.7.239.79:53106 1 Wf5] [Media] -no file, bypassed 04/26/19 06:43:31.883 [86.7.239.79:53106 1 Wf5] [Media] webp replacing: https://assets.thebudgetsavvybride.com/wp-content/uploads/2017/04/wedding-fonts-1-1-263x500.png => LSC_Media->replace_webp()@785 => LSC_Media->webp_srcset()@768 => WP_Hook->apply_filters()@288 => /var/www/html/wp-includes/media.php@208Expand If you need more details let me know. The page I need help with: https://68.183.146.16 Hi, Please kindly check the webp files are actually existing in your file system. https://assets.thebudgetsavvybride.com/wp-content/uploads/2017/04/wedding-fonts-1-1-263?500.png is okay, but https://assets.thebudgetsavvybride.com/wp-content/uploads/2017/04/wedding-fonts-1-1-263?500.png.webp gives error. and if directly uses your origin URI https://thebudgetsavvybride.com/wp-content/uploads/2017/04/wedding-fonts-1-1-263?500.png is okay , but https://thebudgetsavvybride.com/wp-content/uploads/2017/04/wedding-fonts-1-1-263?500.png.webp gives 404 error. Best regards, Hi Thank you for reply: Update: I have re-run cwebp and changed the naming to jpg.webp and .png.webp. This page has the changes attributed to images https://68.183.146.16/sunday-brunch-wedding-7k-budget/ https://assets.thebudgetsavvybride.com/wp-content/uploads/2019/04/6ece2a65-submissions-editor-favorites-0016.jpg https://assets.thebudgetsavvybride.com/wp-content/uploads/2019/04/6ece2a65-submissions-editor-favorites-0016.jpg.webp Both exist Will take me a while to rerun this on all images so only 2019 is current working. Snippet from debug? LSC_Media->_replace_buffer_img_webp()@670 => LSC_Media->_finalize()@358 => LSC_Media::finalize()@341 04/26/19 09:23:00.381 [86.7.239.79:59891 1 BgN] [Util] external 04/26/19 09:23:00.381 [86.7.239.79:59891 1 BgN] [Media] -no file, bypassed 04/26/19 09:23:00.381 [86.7.239.79:59891 1 BgN] [Media] webp replacing: https://assets.thebudgetsavvybride.com/wp-content/uploads/2019/04/9e6f7abc-submissions-editor-favorites-0015.jpg => LSC_Media->replace_webp()@785 => LSC_Media->_replace_buffer_img_webp()@670 => LSC_Media->_finalize()@358 => LSC_Media::finalize()@341 04/26/19 09:23:00.381 [86.7.239.79:59891 1 BgN] [Util] external 04/26/19 09:23:00.381 [86.7.239.79:59891 1 BgN] [Media] -no file, bypassed 04/26/19 09:23:00.381 [86.7.239.79:59891 1 BgN] [Media] webp replacing: https://assets.thebudgetsavvybride.com/wp-content/uploads/2019/04/6ece2a65-submissions-editor-favorites-0016.jpg => LSC_Media->replace_webp()@785 => LSC_Media->_replace_buffer_img_webp()@670 => LSC_Media->_finalize()@358 => LSC_Media::finalize()@341 04/26/19 09:23:00.381 [86.7.239.79:59891 1 BgN] [Util] external 04/26/19 09:23:00.381 [86.7.239.79:59891 1 BgN] [Media] -no file, bypassed 04/26/19 09:23:00.381 [86.7.239.79:59891 1 BgN] [Media] webp replacing: https://assets.thebudgetsavvybride.com/wp-content/uploads/2019/04/38824489-submissions-editor-favorites-0019.jpg => LSC_Media->replace_webp()@785 => LSC_Media->_replace_buffer_img_webp()@670 => LSC_Media->_finalize()@358 => LSC_Media::finalize()@341 04/26/19 09:23:00.381 [86.7.239.79:59891 1 BgN] [Util] external 04/26/19 09:23:00.381 [86.7.239.79:59891 1 BgN] [Media] -no file, bypassed 04/26/19 09:23:00.381 [86.7.239.79:59891 1 BgN] [Media] webp replacing: https://assets.thebudgetsavvybride.com/wp-content/uploads/2019/04/749885d9-submissions-editor-favorites-0020.jpg => LSC_Media->replace_webp()@785 => LSC_Media->_replace_buffer_img_webp()@670 => LSC_Media->_finalize()@358 => LSC_Media::finalize()@341 04/26/19 09:23:00.381 [86.7.239.79:59891 1 BgN] [Util] external 04/26/19 09:23:00.381 [86.7.239.79:59891 1 BgN] [Media] -no file, bypassed 04/26/19 09:23:00.381 [86.7.239.79:59891 1 BgN] [Media] webp replacing: https://assets.thebudgetsavvybride.com/wp-content/uploads/2019/04/d2e278ec-blushandblue_0024-450x450.jpg => LSC_Media->replace_webp()@785 => LSC_Media->_replace_buffer_img_webp()@670 => LSC_Media->_finalize()@358 => LSC_Media::finalize()@341 04/26/19 09:23:00.381 [86.7.239.79:59891 1 BgN] [Util] external 04/26/19 09:23:00.381 [86.7.239.79:59891 1 BgN] [Media] -no file, bypassed 04/26/19 09:23:00.381 [86.7.239.79:59891 1 BgN] [Media] webp replacing: https://assets.thebudgetsavvybride.com/wp-content/uploads/2019/04/80d73885-frenchbackyardwedding_0024-450x450.jpg => LSC_Media->replace_webp()@785 => LSC_Media->_replace_buffer_img_webp()@670 => LSC_Media->_finalize()@358 => LSC_Media::finalize()@341 04/26/19 09:23:00.381 [86.7.239.79:59891 1 BgN] [Util] external 04/26/19 09:23:00.381 [86.7.239.79:59891 1 BgN] [Media] -no file, bypassed 04/26/19 09:23:00.381 [86.7.239.79:59891 1 BgN] [Media] webp replacing: https://assets.thebudgetsavvybride.com/wp-content/uploads/2019/04/b1dac16f-lucky-11_0022-450x450.jpg => LSC_Media->replace_webp()@785 => LSC_Media->_replace_buffer_img_webp()@670 => LSC_Media->_finalize()@358 => LSC_Media::finalize()@341 04/26/19 09:23:00.381 [86.7.239.79:59891 1 BgN] [Util] external 04/26/19 09:23:00.381 [86.7.239.79:59891 1 BgN] [Media] -no file, bypassed 04/26/19 09:23:00.381 [86.7.239.79:59891 1 BgN] [Media] webp replacing: https://secure.gravatar.com/avatar/93fc87e24bfb624add8df6fba2dd249b?s=150&d=mm&r=g => LSC_Media->replace_webp()@785 => LSC_Media->_replace_buffer_img_webp()@670 => LSC_Media->_finalize()@358 => LSC_Media::finalize()@341 04/26/19 09:23:00.381 [86.7.239.79:59891 1 BgN] [Util] externalExpand Hi, Could you please provide the report number ? Best regards, Hi Report number: BJLJLPJX Report date: 04/26/2019 15:05:00 Thank you for looking into this. Hi, Please follow this wiki You will need to properly set up Origin URI and CDN URI, please careful read through the tips, don?t mess or miss ?/? from report I can see you left origin empty. Best regards, Thank you. All working. Resolved



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference