Wordpress LScache Plugin: Critical CSS / null /
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hello, I just moved a site to a new server however for critical CSS, QC shows some urls with / null / It seems I may be experiencing the same issue as posted here >> https://wordpress.org/support/topic/generated-critical-css-contains-only-null/ however, I am not able to implement the fix that is suggested as the path and file no longer exists in the current Litespeed directory. Can you assist me with this please? This topic was modified 1 year, 10 months ago by LPackman. Hi, Please enable debug log , and see what it shows during the CCSS generation Best regards, Hello, Thank you, I only see one mention of css and it doesnt seem helpful, also failed files below which have been moved from server to CDN. Ravi-Industrial-Iron-Nested-Round-Tables-Sheesham-Wood-some-domain-RAV-1229-247x247.jpg 01/11/21 09:58:06.613 [1. . .1:51156 1 ibB] [CDN] -rewrite failed: host not internal 01/11/21 09:58:06.613 [1. . .1:51156 1 ibB] [CDN] matched file_type .jpg : https://cdn.some-domain.co.uk/1/wp-content/uploads/Ravi-Industrial-Iron-Nested-Round-Tables-Sheesham-Wood-some-domain-RAV-1229-1-247x247.jpg 01/11/21 09:58:06.614 [1. . .1:51156 1 ibB] [CDN] rewrite https://cdn.some-domain.co.uk/1/wp-content/uploads/Ravi-Industrial-Iron-Nested-Round-Tables-Sheesham-Wood-some-domain-RAV-1229-1-247x247.jpg 01/11/21 09:58:06.614 [1. . .1:51156 1 ibB] [CDN] -rewrite failed: host not internal 01/11/21 09:58:06.614 [1. . .1:51156 1 ibB] [CDN] matched file_type .jpg : ---------------------------------- emitted some stuff ----------------------------------- 01/11/21 10:02:48.865 [1. . .1:432 1 LrO] [CDN] _replace_inline_css --- array ( inc_img => https://cdn.some-domain.co.uk/1, filetype => true, .gif => https://cdn.some-domain.co.uk/1, .jpeg => https://cdn.some-domain.co.uk/1, .jpg => https://cdn.some-domain.co.uk/1, .png => https://cdn.some-domain.co.uk/1, .woff => https://cdn.some-domain.co.uk/1, .woff2 => https://cdn.some-domain.co.uk/1, .ttf => https://cdn.some-domain.co.uk/1, ) 01/11/21 10:02:48.865 [1. . .1:432 1 LrO] [CDN] replace attribute .src 01/11/21 10:02:48.866 [1. . .1:432 1 LrO] [CDN] replace attribute .data-src 01/11/21 10:02:48.866 [1. . .1:432 1 LrO] [CDN] replace attribute .href 01/11/21 10:02:48.866 [1. . .1:432 1 LrO] [CDN] replace attribute .poster 01/11/21 10:02:48.866 [1. . .1:432 1 LrO] [CDN] replace attribute source.srcset 01/11/21 10:02:48.867 [1. . .1:432 1 LrO] End response -------------------------------------------------------------------------------- Expand Reason: use code button for formatting Forgot to mention for testing purposes I have changed css to generate in the foreground, however it seems nothing is happening. Hi, hmmmm please try it this way : 1. export your current setting 2. reset to default 3. request the domain key again 4. now only enable CCSS to foreground , then run the debug log process again , this way , it will show less-irravalant log Best regards, Thank you I will give this a go. All the best @CacheCrawler I gave that a go however, unfortunately, no change, critical CSS generation seems to be intermittent, some passing and some / null / but mostly just not even trying to generate anything for URLs after visiting them with the foreground option enabled also. This may not be related or something to worry about, in the debug log I see many lines relating to CDN which I enabled because all images are moved from server and hosted on DO spaces. 1 wum] [CDN] matched file_type .jpg : https://cdn.mydomain.co.uk/1/wp-content/uploads/Dining-Tables-100?100.jpg 1 wum] [CDN] rewrite https://cdn.mydomain.co.uk/1/wp-content/uploads/Dining-Tables-100?100.jpg 1 wum] [CDN] -rewrite failed: host not internal The https://cdn.mydomain.co.uk is clearly my cdn domain which is not internal, should I also create this as a subdomain on my server, currently its just a CNAME pointing to DO Spaces? Many thanks for your time. Just some food for thought. Is it possible that I am experiencing issues because the site is currently served from a subdomain i.e staging.mydomain.co.uk
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference