Issue with Safari and Webp replacement




Wordpress LScache Plugin: Issue with Safari and Webp replacement

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi, I am running the latest LSCache v3.2.4. I enabled the Webp replacement, but my images are not showing up on Safari. I confirmed the mod_rewrite rule is present, but for some reason its not serving it correctly. How can I fix this? I did notice some of the WP images have a trailing ?id= which I presume gets added automatically by WP, but not sure if that would affect the mod_rewrite rule from working to not serve Webp images to unsupported browsers? Report number: HAKMNNTM The page I need help with: http://beta.excellenthost.com Hi, Please try add this at top of your .htaccess RewriteCond % HTTP_ACCEPT !image/webp RewriteRule ^(. ).(jpg|png|gif).webp $1.$2 [L] Best regards, Thank you, that seems to work! I see basically its renaming the .webp image file back to the original format for those non-supported browsers. Any reason why this code is not present in the default mod_rewrite rule for the LScache plugin when webp is enabled? Hi, By design , webp should not be sent to Safari or any unsupported browser , but we witnessed in same rare cases, it randomly sends to Safari , but we were never be able to reproduce this issue reliably to debug it , so I come up a workaround for it. If you could reliably reproduce this issue , we will further investigate and to ascertain the root cause Best regards, I can reproduce the error consistently if I remove the code you gave. Do you need further access to do some testing? If so how can I provide it to you? Hi, Please submit a ticket here or join our Slack community for further communication If you go ticket , please include the link of this post if you go Slack, please let me know your username there, I will reach you. Best regards,



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



Reference