Excluding Critical CSS




Wordpress LScache Plugin: Excluding Critical CSS

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi, I have litespeed setup to generate critical css but if I dont want litespeed/quic.cloud to process critical css for specific pages/urls, for instance I will give scenario links? https://mywebsite.com/dashboard/ https://mywebsite.com/dashboard/products/ https://mywebsite.com/dashboard/new-product/ https://mywebsite.com/dashboard/products/?product_id=xyz&soforth Question #1. How can I achieve this? I see a option in Page optimization -> Tuning -> Critical CSS Rule. There is a box there? Is that where I would paste these urls? Im not certain what context they meant by exclude critical CSS rule? Question #2. If that is where I am to put the urls? Is there a way I can type one URL and exclude all the other subsets of that url? For instance if I type https://mywebsite.com/dashboard/ will that also exclude every subset of that link so it will also exclude the other 3 urls I placed above? Thanks for taking the time out to answer my question. We the community do appreciate the effort you guys take daily to address our questions or concerns. Do have a great holiday season I look forward to your reply. Hi, No , that field is for define certain CCSS rule there is no native way to do this , but you can try this way add this code into your wp-config.php if (stripos($_SERVER[REQUEST_URI], dashboard) !== false ) define( LITESPEED_CONF, true ) define( LITESPEED_CONF__OPTM__CCSS_GEN, false ) to force override CCSS in any URL that contains dashboard do a purge all after you add this code Best regards, Ok? I ran into another issue? Litespeed doesnt generate LQIP? I do have my cron job disabled and set to run 5 minutes? Is that what preventing LQIP from working? My critical css are being sent to quic.cloud with no issues? Also I am using cloudflare for my cdn? Do you have to use quic.cloud cdn in order for LQIP to be generated? Hi, Please create a new topic for LQIP and keep this post for CSS Best regards, Okay thanks?



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



Reference