LScache tries to show WebP images on incompatible Mac




Wordpress LScache Plugin: LScache tries to show WebP images on incompatible Mac

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi, We are having issues with webp images as selected background images not displaying on Safari Browser. I have seen this several times in the past on several different sites where LScache attempts to load webp for Safari and they arent displayed? In the past I have simply switched off webp replacement. However in this case it needs to be resolved. Tested on Safari Version 14.1.2 (15611.3.10.1.5, 15611) / Mac OS Catalina 10.15.7 (19H1217) I understand Safari / Apple has only recently enabled webp support, and Ive also heard it requires Mac OS Big Sur (which we are not running). So Im not expecting webp to work? all I want LScache to do is display Jpegs instead when it cant show webp. FYI certain other background inages on the page are shown correctly as jpeg, not webp. Its only the main hero image and footer background. FYI site is built in Elementor Pro. So My question is, If the browser and OS cannot support it, why is LScache trying to show it? And how do we stop it trying to show webp on incompatible devices, but still show them on compatible ones? The site is currently behind a passworded staging domain, so I cant give details here. Im happy to send full access details to our site if you can give me a secure method to do so. Report #: YXAZPNOC Thank you! Hi, is your site has HTTP auth ? please share it through reports note Best regards, Revised Report # SMYTEJZD Looking forward to hearing back from you. Thank you. Hi, could you please try edit file /litespeed-cache/src/media.cls.php at line 800 , find if ( defined( LITESPEED_GUEST_OPTM ) || $this->conf( Base::O_IMG_OPTM_WEBP_REPLACE ) ) change it to if ( defined( LITESPEED_GUEST_OPTM ) || $this->conf( Base::O_IMG_OPTM_WEBP_REPLACE ) && $this->webp_support()) save and purge all , see how it goes on Safari and other browser ? Best regards, Ive made the changes as requested. The problem is still there, exactly as before. LScache is still loading the webp file which is not displaying. Please let me know how you go with it? Thanks. well , I think I know where did the issue come from , but my edit didnt fix we will keep investigate to find a proper way to address it. Thank you very much ? I appreciate that. Will you be able to keep me updated as to when a fix will be available? Thanks! Hey guys, Any updates on this? Cheers. it should be fixed in v4.4.3 https://github.com/litespeedtech/lscache_wp/commit/1f5bbb72042971eafdc46367bcb1f3776186f240 Best regards,



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



Reference