Title: Remove query string from static content again
Last modified: August 21, 2016

---

# Remove query string from static content again

 *  [joarroya](https://wordpress.org/support/users/joarroya/)
 * (@joarroya)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/remove-query-string-from-static-content-again/)
 * Hi.
 * I have problems with this point in W3TC, uncheck the “Prevent caching of objects
   after settings change” and the problem still remain, what else can I do?
 * thanks
 * [http://wordpress.org/plugins/w3-total-cache/](http://wordpress.org/plugins/w3-total-cache/)

Viewing 1 replies (of 1 total)

 *  [gaptekupdate](https://wordpress.org/support/users/gaptekupdate/)
 * (@gaptekupdate)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/remove-query-string-from-static-content-again/#post-4384138)
 * add this to your theme functions.php
 *     ```
       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 );
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Remove query string from static content again’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [gaptekupdate](https://wordpress.org/support/users/gaptekupdate/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/remove-query-string-from-static-content-again/#post-4384138)
 * Status: not resolved