Title: Remove query strings from static resources
Last modified: August 21, 2016

---

# Remove query strings from static resources

 *  Resolved [Erik Balster](https://wordpress.org/support/users/erik-balster/)
 * (@erik-balster)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/remove-query-strings-from-static-resources-3/)
 * Hello,
 * i installed this plugin yesterday. I also use maxcdn and my website is way faster
   then before.
 * The only problem is that after i installed the plugin pingdom says that i have
   to remove query strings from static resources.
 * I searched for it on the internet and i saw that i have to uncheck the box : 
   Prevent caching of objects after settings change.
 * The problem is that i unchecked this box but i dont’t see any results. Pingdom
   still gives the same grade.
 * Have can i fix this?
 * [http://wordpress.org/plugins/w3-total-cache/](http://wordpress.org/plugins/w3-total-cache/)

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

 *  [longnha](https://wordpress.org/support/users/longnha/)
 * (@longnha)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/remove-query-strings-from-static-resources-3/#post-3957020)
 * I had the same problem before, after searching on Google I found the solution,
   add the code inside the PHP tage of your functions.php file.
 *     ```
       function _remove_script_version( $src ){
           $parts = explode( '?ver', $src );
               return $parts[0];
       }
       add_filter( 'script_loader_src', '_remove_script_version', 15, 1 );
       add_filter( 'style_loader_src', '_remove_script_version', 15, 1 );
       ```
   
 * It work for more at least, hope it do for you.
 * Source here: [http://diywpblog.com/wordpress-optimization-remove-query-strings-from-static-resources/](http://diywpblog.com/wordpress-optimization-remove-query-strings-from-static-resources/)
 *  Thread Starter [Erik Balster](https://wordpress.org/support/users/erik-balster/)
 * (@erik-balster)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/remove-query-strings-from-static-resources-3/#post-3957034)
 * hello longnha,
 * i allready tried this but first it didn’t work. After purge the CDN completly
   and empty the cache in Minify is worked.
 * Thanks for helping me.
 *  [nevin.folino88](https://wordpress.org/support/users/nevinfolino88/)
 * (@nevinfolino88)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/remove-query-strings-from-static-resources-3/#post-3957076)
 * Is there anyway I could see a screen shot of exactly where that code gets copied
   into?
 * I’m not a coder and don’t really know what I’m doing.

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

The topic ‘Remove query strings from static resources’ 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/)

 * 3 replies
 * 3 participants
 * Last reply from: [nevin.folino88](https://wordpress.org/support/users/nevinfolino88/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/remove-query-strings-from-static-resources-3/#post-3957076)
 * Status: resolved