CSS and JavaScript 404




Wordpress LScache Plugin: CSS and JavaScript 404

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi, Last night I encountered an issue where the sites CSS was not displaying. In the developer tools I could see that the Litespeed-cached CSS file was returning a 404. From what I could tell the HTML page cache had cached a reference to a CSS file that no longer existed. When I purged it everything started working again. My theory is that somebody had pressed Purge All ? CSS/JS Cache without also purging the page cache. Is there any other reason this might have occurred? Surely the plugin is smart enough under normal circumstances to clear the page cache if any referenced resources are also purged? What can I do to protect against this in future? Thanks Hi, Could you please go to Cache ?> Purge ?> set Purge Stale or Serve Stale to OFF ? Best regards, Ive set this setting to OFF. If Im understanding correctly, if this setting was responsible, it shouldnt have been issue for more than a few minutes, right? While the cache generates? Hi, By design , yes , but as this is newly added feature , maybe a bug from server-side. to me this is kind of like out-of-sync issue. when you do a purge all , with stale for example you have a page , link to 12345.js , 12345.css once you purged all , these 2 js/css will be deleted and new one generated with new name, like abcde.css and abcde.js then the main page is still serving in staled cache , as it still links to 12345.js/css , then you got 404



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



Reference