Query String not removed




Wordpress LScache Plugin: Query String not removed

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hello. I want to remove query string from the url to stop the plugin from generating a new critical css for the same page that has a different query string. In my .htacces file I have this section: ### marker DROPQS start ### CacheKeyModify -qs:id ### marker DROPQS end ### But it seems it does nothing, because every time I load the same page with another query string, a new .css file is created in the ccss folder. Can you help me solve this problem? Hi, Could you please provide few example queries ? I assume its like https://domain.com/page?id=1 https://domain.com/page?id=2 https://domain.com/page?id=3 ?etc ? Best regards, I have something like this /cart?id=1GCon6JmQTRZsDgyUWv4dzA0qS7kMB Hi, please try CacheKeyModify -qs:id and see how it goes. Best regards, I tried but it keeps generating new css file every time I try a url with a new id. From what I understand, if the query string was removed, than there will be no need to generate a new critical css file, since a css for cart page already exists. Hi, On my test it works. May I know what is your webserver ? is it LiteSpeed Enterprise or OpenLiteSpeed? Best regards, I have hosting on cpanel. There I have a plugin called LiteSpeed Web Cache Manager. But I dont know how to find more details about. Hi, Oh wait , sorry , I misunderstood the question from start. the remove query string only works for static resources like https://domain.com/wp-content/plugins/some/some/some.js?v=1.2.3 to become https://domain.com/wp-content/plugins/some/some/some.js it wont remove the query from main request. the setting you showed , is to drop the query cache by default for example , if you have page https://domain.com/page?qs=1 , https://domain.com/page?qs=2, and https://domain.com/page?qs=3 in this case, there will be 3 copies of cache , if you drop query cache , then it will be served from one same cache. Best regards,



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



Reference