Re: Remove query strings from static resources
Reply #9 –
Pingdom says "more at Google Developers" but it doesn't look like Google mentions it at all?
At GTmetrix I don't seem to get a warning about such query strings.
The sha1 hash seems to be based on the filenames (see here) and just about the only filenames that change occasionally are jquery-3.1.1.min.js. However, there's no reason for the
unique stale" right below to be appended as a query string. It should be no trouble at all to change the '?' to a '-'.
The woff doesn't need one either because it already includes a changing version number:
http://netdna.bootstrapcdn.com/font-awesome/4.2.0/fonts/fontawesome-webfont.woff?v=4.2.0
That could be easily removed here but it'd be at a big danger of being forgotten while updating the CSS file (which comes that way straight from the horse's mouth).
Edit: but you could probably write some kind of Travis test to prevent regressions there. Still, it'd take a whole lot more trouble than just a simple deletion.