Title: Remove Query Strings Option
Last modified: June 9, 2026

---

# Remove Query Strings Option

 *  [rbabt](https://wordpress.org/support/users/rbabt/)
 * (@rbabt)
 * [3 days, 12 hours ago](https://wordpress.org/support/topic/remove-query-strings-option/)
 * In the plugin, there’s the option to remove query things form static resources.
   Would it be possible to get more information on this? It says on the plugin page“
   Google reCAPTCHA will be bypassed automatically.” What about Google Tag Manager
   and Google Ads conversion tracking? Will those be removed?
 * The full help text says its removed from static resources, does that include 
   html and scripts or just images?
 * > This setting strips the query string from static resources. Static resources
   > with query strings may not be cached by browsers and proxy servers. Removing
   > the strings allows them to be cached, which translates into a faster page load.
   >  [https://docs.litespeedtech.com/lscache/lscwp/pageopt/#remove-query-strings](https://docs.litespeedtech.com/lscache/lscwp/pageopt/#remove-query-strings)
 * Any additional help understanding how this works would be appreciated

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

 *  Thread Starter [rbabt](https://wordpress.org/support/users/rbabt/)
 * (@rbabt)
 * [3 days, 10 hours ago](https://wordpress.org/support/topic/remove-query-strings-option/#post-18933289)
 * Follow up question, how does this work and interact with the “Drop Query String”
   option on the cache settings page? From the help text, it seems “Drop Query String”
   stops LS from creating a cached version based on the parameter, but what about
   on the initial visit. Can a page served from cache if the query string is present?
 * i.e. if [https://ab-technology.co.uk/](https://ab-technology.co.uk/) is in the
   cache and someone clicks a link that also has a ?gclid= parameter, is the cached
   version of the page served?
    -  This reply was modified 3 days, 10 hours ago by [rbabt](https://wordpress.org/support/users/rbabt/).
 *  Plugin Support [litetim](https://wordpress.org/support/users/litetim/)
 * (@litetim)
 * [3 days, 6 hours ago](https://wordpress.org/support/topic/remove-query-strings-option/#post-18933538)
 * [@rbabt](https://wordpress.org/support/users/rbabt/) 
   It will remove all Query
   Strings from CSS/JS files enqueued with WP `wp_enqueue_style` or `wp_enqueue_script`.
   BUT will skip:– external URL’s– URL’s with `_litespeed_rm_qs=0` – URL’s that 
   contain `/recaptcha`
 *  Thread Starter [rbabt](https://wordpress.org/support/users/rbabt/)
 * (@rbabt)
 * [2 days, 13 hours ago](https://wordpress.org/support/topic/remove-query-strings-option/#post-18934182)
 * Thank you, that is helpful to know. Could I get one more bit of clarification
   please?
 * If a URL contained a query string such as ?gclid= should the page served from
   cache? Does enabling or disabling “Drop Query String” affect this?
 *  Plugin Support [litetim](https://wordpress.org/support/users/litetim/)
 * (@litetim)
 * [2 days, 2 hours ago](https://wordpress.org/support/topic/remove-query-strings-option/#post-18934892)
 * [@rbabt](https://wordpress.org/support/users/rbabt/) “Drop Query String” will
   drop all Query strings, page cache will ignore QS parameters.
   Enabling this, 
   depends on what you want to achieve.**For example:** category with filters added
   from parameters you could cache all pages with/without filterYou could live **
   Drop Query String** setting **ON** but use [https://docs.litespeedtech.com/lscache/lscwp/cache/#do-not-cache-query-strings](https://docs.litespeedtech.com/lscache/lscwp/cache/#do-not-cache-query-strings)
   to ignore specific QS

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fremove-query-strings-option%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](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

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

 * 4 replies
 * 2 participants
 * Last reply from: [litetim](https://wordpress.org/support/users/litetim/)
 * Last activity: [2 days, 2 hours ago](https://wordpress.org/support/topic/remove-query-strings-option/#post-18934892)
 * Status: not resolved