Remove Query Strings From Static Resources
How to Remove Query Strings From Static Resources in WordPress
Some web servers are unable to cache query strings, even if a header is present. So the solution to avoid web server cache issues is removing the version from the URL. This will fix that warnings that you see in Pingdom and GTMetrix called “Remove query strings from static resources.”
Add the code below on your functions.php.