CSS rule being removed ? @charset UTF-8~




Wordpress LScache Plugin: CSS rule being removed ? @charset UTF-8~

Last Updated on: Wed, 15 Apr 2026 00:00:02
My CSS files start with @charset UTF-8 as per the spec. When the LiteSpeed Cache WordPress plugin minifies them, the charset declaration disappears. Ive flushed my cache, but I cant find an option to keep the character encoding. Hi, Could you please provide the report number ? Best regards, I cant run that as it requires an extra plugin. I think the error is on https://github.com/litespeedtech/lscache_wp/blob/master/litespeed-cache/lib/css_min.class.php#L701 Looks like matches isnt passed? Hi @edent, our CSS minified will keep one and first @charset on the CSS file, could you share the CSS file with us which gets removed the string? Hi, Im going to mark this topic Resolved, due to lack of activity. If you still need help, please share the CSS file so we can take a look. Well be happy to reopen the topic if necessary. By the way, sharing a report number shouldnt require any additional plugin. If you would like to try it, navigate to WP Admin > LiteSpeed Cache > Report, press the Send to LiteSpeed button, and let us know the number that appears there. Thanks!



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



Reference