Support » Plugin: W3 Total Cache » Remove query strings from static resources

  • Resolved Erik Balster



    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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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:

    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.

    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.