Support » Plugin: Fast Velocity Minify » Ignored files stripped of version number

  • Resolved Fabian


    Hi there,

    The plugin strips the version of included JS files (See $ver in code below) even though they’re on the ignore list.

    wp_register_script( $handle:string, $src:string, $deps:array, $ver:string|boolean|null, $in_footer:boolean )

    So the request is js.bundle.js
    And not (without the plugin): js.bundle.js?ver=xyz

    • This topic was modified 4 years, 7 months ago by Fabian.
    • This topic was modified 4 years, 7 months ago by Fabian.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Raul P.



    Indeed, that’s the intended behaviour.

    The ignore list exists only for compatibility when there is a merging conflict and it’s not meant to leave the scripts completely alone.
    Query strings should always be removed from static assets, as they do nothing to the script itself, other than to bypass cache.

    If you are not running PHP inside the .js file, this changes is good for you and part of the optimization of fvm.

    But I’ll consider adding an option not to remove the query string of ignored files.
    Will add it to my roadmap.

    Thanks for reporting,


    Thread Starter Fabian


    Hi Raul,

    thanks for considering.
    In our case query strings are indeed intended behavior and part of our versioning / client cache busting strategy.

    Plugin Author Raul P.


    Removing query strings from static resources is a recommendation on tests, that’s why fvm uses file names instead of query strings.

    What I can suggest for now, if you have control over the file query, is to change its name if you need cache invalidation. Something like filename-v2.js for example.

    But I’ll look into this in the future.
    Thanks again

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Ignored files stripped of version number’ is closed to new replies.