How to Remove Query Strings From Static Resources in WordPress

When it comes to WordPress performance, this question comes up quite a bit, and that is how to remove query strings from static resources. Your CSS and JavaScript files usually have the file version on the end of their URLs, such as www.prado.lt/style.css?ver=4.9.5. Some servers and proxy servers are unable to cache query strings, even if a cache-control:public header is present. So by removing them, you can sometimes improve your caching. This will also fix that warning you see in GTmetrix and Pingdom called “Remove query strings from static resources.”

Continue reading “How to Remove Query Strings From Static Resources in WordPress”