Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Willy Bahuaud

    (@willybahuaud)

    Hello,
    You can remove query string from static ressources using another plugin. I suggest you SF cache busting (which you can download on the sidebar of the author website). It change ressource.js?ver=2.0.3 to ressource.2.0.3.js

    And adding anything on functions.php?

    This code doesn′t seem to work with your javascript added:

    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 );

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove query strings from static resources’ is closed to new replies.