Title: Remove query strings doesnt work
Last modified: May 12, 2021

---

# Remove query strings doesnt work

 *  Resolved [niteshjpm](https://wordpress.org/support/users/niteshjpm/)
 * (@niteshjpm)
 * [5 years ago](https://wordpress.org/support/topic/remove-query-strings-doesnt-work/)
 * I am facing this issue in almost all sites where lscache is installed. When CSS
   and JS minify option is activated, all the js and css files are appended with
   additional query strings like wp-content/litespeed/cssjs/f68d7.js?a534e
    I tried
   activating Remove query strings option in LScache but that didnt work and the
   files have strings attached. Due to this none of the css and js files are cached.
 * Any help on this?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fremove-query-strings-doesnt-work%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [tenkstars](https://wordpress.org/support/users/tenkstars/)
 * (@tenkstars)
 * [5 years ago](https://wordpress.org/support/topic/remove-query-strings-doesnt-work/#post-14431159)
 * Hi,
 * From the site you provide, I can see all of your CSS and JS files are properly
   cached. They were not when I first opened your site, but after refreshing, they
   all got “cache hit”. If you want them to be cached before the first viewer opens
   up the page, then you have to run the crawler to pre-cache your site.
 * Regards.
 *  Thread Starter [niteshjpm](https://wordpress.org/support/users/niteshjpm/)
 * (@niteshjpm)
 * [5 years ago](https://wordpress.org/support/topic/remove-query-strings-doesnt-work/#post-14431204)
 * Thank you for the response. I see that its getting cached now. But the query 
   strings are still there. Any specific reason for these query strings attached
   to all the css and js files by lscache?
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [5 years ago](https://wordpress.org/support/topic/remove-query-strings-doesnt-work/#post-14431688)
 * Hi,
 * these queries were deliberately added into LiteSpeed generated files , so when
   you change something , like edit css/js or something , browser will be forcefully
   to load new files due to different query , so you won’t serve old content to 
   your users
 * Best regards,

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Remove query strings doesnt work’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [js](https://wordpress.org/support/topic-tag/js/)
 * [Query String](https://wordpress.org/support/topic-tag/query-string/)

 * 3 replies
 * 3 participants
 * Last reply from: [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/remove-query-strings-doesnt-work/#post-14431688)
 * Status: resolved