• The Pingdom tool recommends removing the ?ver=3.5.1 part of a JS or CSS file.

    I seem to recollect that somewhere in WP (possibly this plugin) there was a check box that could be set to remove query strings. (Not the WordPress version number I saw the iThemes post on that)

    Any suggestions, or anuyone remember where this was set?
    (I know that you can’t do all of the suuggestions that tools come up with but I get tired loking at error, real and perceived. I know there are PHP options for doing this, but I can’t get that check box out of my mind. Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The Pingdom tool recommends removing the ?ver=3.5.1 part of a JS or CSS file.

    Why ?

    Thread Starter robmcp

    (@robmcp)

    Whilst I don’t religiously follow the recommendations of all tools. If it’s not too much faff, then I will try.

    Pingdom actually say.

    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:

    I did find the WordPress location for doing this.
    If you use DIVI themes.
    DIVI > Theme options > Builder > Static options.

    Hmm you got me confused … (i think).

    WordPress adds the “ver=“ query string for a reason. Cache busting.
    If a new WordPress version is released which includes a modified resource the old resource from (browser) cache is ignored. Thus making sure the modified resource is automatically loaded …

    So how does a proxy caching server know when to serve a modified resource when there is no query string? Oh wait, when it’s encoded into the url the new url will be different … right ?

    So basically WordPress is doing it wrong !??

    Just trying to learn something from this …;-)

    Thread Starter robmcp

    (@robmcp)

    Hmm you got me confused … (i think).

    Ha ha, join the club.
    As I mentioned, I run tools for an opinion, but do not followw suggestions to the letter. I can’t say I fully understand the recommendation.
    What is the point of adding ver=2.3.4 on the URL end, why not just call the file what it is and expect it to be loaded?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Remove query satring from resources’ is closed to new replies.