Title: Remove query strings
Last modified: August 21, 2016

---

# Remove query strings

 *  [bmayer](https://wordpress.org/support/users/bmayer/)
 * (@bmayer)
 * [13 years ago](https://wordpress.org/support/topic/remove-query-strings/)
 * Hi,
 * I’m testing my page speed at gtmetrix.com and I keep getting an F for “Remove
   query strings from static resources”. I have unchecked the Browser Cache option
   for Prevent caching of objects after settings change and also added the following
   lines to my functions.php file in my theme folder:
 * function _remove_script_version( $src ){
    $parts = explode( ‘?’, $src ); return
   $parts[0]; } add_filter( ‘script_loader_src’, ‘_remove_script_version’, 15, 1);
   add_filter( ‘style_loader_src’, ‘_remove_script_version’, 15, 1 );
 * My site is [http://dev.arnpriorhumanesociety.ca](http://dev.arnpriorhumanesociety.ca)
 * Any other suggestions on how to fix this?
 * Thanks,
    Belinda
 * [http://wordpress.org/extend/plugins/w3-total-cache/](http://wordpress.org/extend/plugins/w3-total-cache/)

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

 *  Thread Starter [bmayer](https://wordpress.org/support/users/bmayer/)
 * (@bmayer)
 * [13 years ago](https://wordpress.org/support/topic/remove-query-strings/#post-3800733)
 * Appears to be working this morning so consider this solved.
 *  [sireneweb](https://wordpress.org/support/users/sireneweb/)
 * (@sireneweb)
 * [13 years ago](https://wordpress.org/support/topic/remove-query-strings/#post-3800791)
 * i advise you to use Remove Script & Stylesheet Versions plugin, this plugin works
   very well, no conflict with google map or other external javascripts

Viewing 2 replies - 1 through 2 (of 2 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [sireneweb](https://wordpress.org/support/users/sireneweb/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/remove-query-strings/#post-3800791)
 * Status: not resolved