• Resolved Vishal Lohar

    (@vlohar08)


    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 don’t 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?

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘Litespeed is generating Optimized files for invalid urls’ is closed to new replies.