• Resolved Ben

    (@benrich)


    I’m trying to understand something.

    With minification enabled the plugin removes the query string off all the resource urls. The query string often includes the version of the resource, which is important as themes or plugins get updated. My site doesn’t need caching enabled and I don’t want to merge all my js/css files.

    Given these facts I want to keep the query strings but I can’t see any option for that.

    Am I missing something?

    Thanks

    • This topic was modified 3 years, 8 months ago by Ben.
Viewing 1 replies (of 1 total)
  • Thread Starter Ben

    (@benrich)

    Found my answer

    add_action('wp', 'my_function_name');
    
    function my_function_name() {
       remove_filter('style_loader_src', array('WP_Optimize_Minify_Functions', 'remove_cssjs_ver'));
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Keeping the url query string?’ is closed to new replies.