Title: Remove Query Strings
Last modified: August 21, 2016

---

# Remove Query Strings

 *  [kmcminn](https://wordpress.org/support/users/kmcminn/)
 * (@kmcminn)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/remove-query-strings-1/)
 * Good day!
 * I was just reading this thread:
    [http://wordpress.org/support/topic/plugin-w3-total-cache-remove-query-string-from-static-content](http://wordpress.org/support/topic/plugin-w3-total-cache-remove-query-string-from-static-content)
 * …and I know it’s for a different, older version of W3 Total Cache, but the setting
   is still present in the newest version. And it should work, but doesn’t.
 * I have the “Prevent caching of objects after settings change” unchecked, but 
   my query strings are still present.
 * [http://wordpress.org/plugins/w3-total-cache/](http://wordpress.org/plugins/w3-total-cache/)

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

 *  [Anthony Somerset](https://wordpress.org/support/users/anthonysomerset/)
 * (@anthonysomerset)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/remove-query-strings-1/#post-4260948)
 * the prevent caching of objects after settings change sets a consistent query 
   string for all assets using a datestamp rather than the varying system used by
   different plugins and WP itself – disabling it doesn’t remove the query string
   at all, it just doesn’t override the default set by WP or other plugins
 *  Thread Starter [kmcminn](https://wordpress.org/support/users/kmcminn/)
 * (@kmcminn)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/remove-query-strings-1/#post-4260950)
 * Anthony, thanks for your response.
 * Then how would I removed the query strings?
 * Specifically, my query strings look like this:
 * `/wp-content/plugins/jetpack/modules/sharedaddy/sharing.css?ver=2.5`
    `/wp-includes/
   css/admin-bar.min.css?ver=3.6.1` `/wp-content/plugins/anti-spam/js/anti-spam.
   js?ver=1.9`
 * …etc.
 * EDIT: Also, doesn’t that go against what the author already pointed out here?
   
   [http://wordpress.org/support/topic/plugin-w3-total-cache-remove-query-string-from-static-content](http://wordpress.org/support/topic/plugin-w3-total-cache-remove-query-string-from-static-content)
 *  [jaimebib](https://wordpress.org/support/users/jaimebib/)
 * (@jaimebib)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/remove-query-strings-1/#post-4260999)
 * I,m wondering about this as well, I have never seen this issue before on any 
   of my sites might have to do something with the recent update. Anyways I have
   looked everywhere trying to solve this issue but no luck..
 *  [Anthony Somerset](https://wordpress.org/support/users/anthonysomerset/)
 * (@anthonysomerset)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/remove-query-strings-1/#post-4261064)
 * those will be set in a variety of places
    - core wordpress
    - plugins
    - themes
 * You would have to modify the various plugins and hookin to the core javascript
   embeds to disable the JS/CSS includes, then manually re-add them without the 
   version headers
 * or take a look here for a quick fix: [http://www.sharepointjohn.com/wordpress-remove-version-query-strings-from-javascript-js-and-css-stylesheet-files/](http://www.sharepointjohn.com/wordpress-remove-version-query-strings-from-javascript-js-and-css-stylesheet-files/)
 * its not really worth the time and energy IMHO – query strings don’t pose as many
   issues for caches as they used to do – and a question to ask, how many of your
   sites users are likely behind proxies where this “might” be an issue?
 * what Frederick pointed out in the other post is related to the query string W3TC
   sets – when that option is enabled W3TC will set a single consistent query string
   for as many static resources it can (if not all) which is very good when working
   with CDN’s – especially those that charge for purges (like cloudfront)

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

The topic ‘Remove Query Strings’ is closed to new replies.

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

## Tags

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

 * 4 replies
 * 3 participants
 * Last reply from: [Anthony Somerset](https://wordpress.org/support/users/anthonysomerset/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/remove-query-strings-1/#post-4261064)
 * Status: not resolved