Jump to content


This topic is now archived and is closed to further replies.


Remove query strings from static resources

Recommended Posts


I launched this site over Labor Day and since we were having speed issues, ended up moving the hosting to FlyWheel. When I run GtMetrix on this we only see: Page Speed Grade: (89%) B and YSlow Grade:(85%) B. The first and only red flag is as my subject line says...remove query strings from static resources. I don't know what this means or how to do it. Here's what is listed:



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:


Most of this is all DMS related except a few. When I asked FlyWheel about this here's their response:


Concerning the query strings, some plugins will add those specifically to make sure those resources don’t cache. DMS in particular has a number of it’s own caching functions, so this may be to prevent them from interfering or conflicting.


However, you may be able to remove those with a plugin like: https://wordpress.org/plugins/remove-query-strings-from-static-resources. You potentially might also be able to use a functions.php script like this: http://diywpblog.com/wordpress-optimization-remove-query-strings-from-static-resources/


So question is what should I do about this? Anything? Do you recommend these plug-ins?


Site is obviously at http://myideallife.com 



Sheila Hoffman | Hoffman Graphics | Seattle

Share this post

Link to post
Share on other sites

In my opinion it really does not make any difference.


WordPress adds fileversions to css/js etc so that when you update WordPress the js/css files are also updated. If you remove all these versions and you update something you run the risk of people loading older versions of the css/js and your page not looking right.



First load with no version: http://screencast.com/t/YiMoLvNOWlo

reload with no version: http://screencast.com/t/w6Hsxnj0IJU


Now with file versions....


First load with a file version: http://screencast.com/t/C2e8Xgxg4anB

And when reloaded...: http://screencast.com/t/XadlIRSHKfld

Share this post

Link to post
Share on other sites

OK...so bottom line is you would just forget this?! I'm good with that. Thanks.

Sheila Hoffman | Hoffman Graphics | Seattle

Share this post

Link to post
Share on other sites

  • Similar Content

    • Lisa Haran
      By Lisa Haran+
      I have a map here http://www.iloveoffset.com/maps/
      I want to add several pointer locations to the map, but when I do they do not appear.
      On this map there are 2 pointer locations and as you can there is only one visible.
      Earlier today I added 7 and could only see 4 so there is something odd going on.
      My theme is up to date
    • clj182
      By clj182+
      I've been having trouble unlocking the template section for past couple of weeks. When I try clicking nothing happens. 
      I've deleted my custom css and removed plugins. Im down to having only the following plugins:
      Contact Form 7
      DMS Professional Tools
      Pagelines Updater
      It was working fine before i have no idea what's going on with it.
    • flourishdesignstudio
      By flourishdesignstudio+
      My DMS 2 site http://www.heart-stone.com/ will not save any new custom css... I can still edit templates and publish those but any custom css that I enter never saves.
      All WP files, themes, and plugins are up to date. 
      Any thought about what might be causing this?
    • flourishdesignstudio
      By flourishdesignstudio+
      Is there a way to edit the custom CSS via FTP? I know I can edit the custom code in the Chrome editor but is there a file path I can use to find and edit the CSS directly from our FTP?
      Thanks in advance for the help!
    • nizami
      By nizami+
      Using navbar section with correctly configured WP menu to display main navigation at https://elenaangel.com. 
      All fine in desktop viewport. Menu displays twice in hamburger mode. How to fix this please?