Litespeed is generating Optimized files for invalid urls




Wordpress LScache Plugin: Litespeed is generating Optimized files for invalid urls

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi, I have turned on-page optimization and generated critical and unique CSS for my website. The problem is LiteSpeed generates optimized files even for URLs that dont exist. A customer entered a wrong URL that let him to 404 but Litespeed will still generate optimized files for it. Can we somehow generate these files for only valid URLs? I guess this happens because 404 and all other != 200 pages are also cached. Try to reduce TTL for error pages to -1 or 1. Not tested, but should help.



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



Reference