Remove query strings from static resources
Hello
Hope you can help me with this.
I ran my site in gtmetrix, and I should fix this:
Resources with a “?” in the URL are not cached by some proxy caching servers. Remove the query string and encode the parameters into the URL for the following resources:
http://website.com/wp-content/themes/vantage/fontawesome/font/fontawesome-webfont.woff?v=3.2.1
How do I delete the ?v=3.2.1 from the url ?
This is our free support forum. Replies can take several days.
Need fast email support? Get SiteOrigin Premium
Replies
2Shall I maybe change som .php file for that ?
Anyone know how to delete the ?v=3.2.1 ?
Hi There Simon.
It’s common practice to add those queries so that if the file ever changes, the new version number will trigger browsers to fetch the latest version of the file.
It wont effect the speed of your site, but if you do want to edit this, you’ll need to open up fontawesome/css/font-awesome.css from the Vantage theme folder and remove the query strings from the font-face definition.
Just note, you’ll need to do this each time you update Vantage.
Replies on this thread are closed.
Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.