If you test your website speed with tools, such as GTMetrix.com, or on Pingdom Tools, you’ll see a suggestion: Remove Query strings from static resources.
Resources, containing query strings cannot be cached. You’ll get an improved speed score if you remove those query strings.
Files that display a query string are either CSS or JavaScript.
This is because the default behavior for the WordPress wp_enqueue_script function is to append a string specifying the script version number.
When developers add a version number, it is concatenated to the end of the path as a query string. If no version is specified or set to false, then WordPress automatically adds a version number equal to the current version of WordPress you are running.
How to remove query strings from static resources:
Hello. I have been searching for days to learn how to remove query strings from a non-WP website. I have had no luck. Any ideas? Would I need to edit the htaccess file?
It depends on CMS that you are using, or is it a static site? Here’s a tutorial to remove it in Drupal or in Joomla: https://www.keycdn.com/support/remove-query-strings-from-static-resources.
You might want to post a specific question on http://stackoverflow.com
Irina what about: https://wordpress.org/plugins/remove-query-strings-littlebizzy/
easy install one click… no settings… cheers
You can use a plugin too. But it adds another plugin to your website that you have to maintain and update.