Wordpress LScache Plugin: Issues with images and Amazon Cloudfront
Last Updated on: Wed, 15 Apr 2026 00:00:02 I have a site running Litespeed 2.9.8.7 where I enabled Amazon Cloudfront CDN. It used to run fine for several months, but recently I noticed that there were severe issues with images ? sometimes one image is randomly replaced by another, and very often they simply dont load. Tried to troubleshoot this by enabling/disabling the CDN, but it doesnt work. The only way to get the site display correctly is to disable Litespeed whatsoever. I am now getting alerts from Google Search Console regarding usability issues. Can you help please? Report number: BZVCKZQX This topic was modified 3 years, 1 month ago by VWI. Hi @r3born, you said Tried to troubleshoot this by enabling/disabling the CDN, Sounds like the Cloudfront does cache the image correctly, usually our plugin will not change the URL of your images. Could you verify does our plugin affected the Cloudfront caching? Hello, how can I verify this? Hi, Tried to troubleshoot this by enabling/disabling the CDN, but it doesnt work You mean , even with CDN off , the image still loaded with wrong link ? If that so , could you please tell what was the original URL and wrongly-showing URL ? Best regards, With CDN off, the image loaded correctly BUT there are a lot of images on the page that returned 404 errors. Hi, Could you please provide an example URL of these 404 images and what is the correct URL that with LSCWP off ? Also could you please confirm , that after you disabling/enabling CDN , you did purge all ? because it may not come in effect unless you have purged cache. I purged the cache more than 10 times. Heres an example: https://vintagewatchinc.com/wp-content/uploads/2019/08/generation-2-shield-338?450.jpg On this page: https://vintagewatchinc.com/ussr/vostok/nvch-30/ Right now the CDN is disabled. Issues Im encountering are: ? generally slow loading for images ? images randomly throwing 404 errors (sometimes a refresh of the page fixes it, but this is not a good user experience) Clicking on the image link directly obviously works, the image exists in the uploads folder. I just ran some speed tests with webpagetest.org, something is seriously wrong: ? With Litespeed on (CDN off), loading time is 23 seconds ? With Litespeed totally disabled, loading time is 10 seconds Hi, So on this page https://vintagewatchinc.com/ussr/vostok/nvch-30/ , with image https://vintagewatchinc.com/wp-content/uploads/2019/08/generation-2-shield-338?450.jpg ,and this is the correct image URL. Do you have record for what is the incorrect image URL that causes 404 error ? with the 404 URL , we might guess something out for what may cause it or what possibly went wrong. Also please enable advanced debug log to your IP then access the page in quesiton , it will log every CDN URL rewrite in debug log , from there it could tell me why or what happened. For webpagetest , could you please send the both test result with and without LSCWP ? we will check the report and see if we can tell why it slows down so much. Best regards, Here are the results from webpagetest: Litespeed enabled: https://www.webpagetest.org/result/191021_SM_83e3830a2043489332565eb411d79066/ Litespeed disabled: https://www.webpagetest.org/result/191021_A4_3fff6ed9ba0bdf4e21a234ad3869fb17/ How can I email you the debug log? Hi @r3born, the Litespeed enabled is a fresh load of the page, so the speed will be slower then disabled because our plugin is running some optimization function. If you want to test the cached result please pre-cache the page. For example, this is the cached result: https://www.webpagetest.org/result/191022_H1_cc99165f2f42f3bba7d5747be25cb743/ Also, I find the image (generation-2-shield-338?450.jpg) has loaded on both versions of the webpagetest and I cannot reproduce the issue on your site now. You can put the debug log on https://pastiebin.com and send us the link here. Hi @r3born, Do you still need help with this? If so, please provide the debug log, as requested. Im going to mark this topic Resolved for now, but will be happy to re-open it if we hear from you again. Thanks!
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference