Is it possible to remove the logo & favicon query string in Gantry 5
Posted 9 years 2 months ago
Hi,
Currently using GTmetrix to test and optimize my new Gantry 5 website. So far I've scored 94%(PageSpeed) & 92%(YSlow) which is very good but as I'm abit anal about these things I want to fix everything that is possibly slowing the site down and get the highest scores possible.
PageSpeed recommends that I should remove query strings from static resources. In reviewing the effected files I found 2 images using query strings. One image is the site logo and the other is the favicon. Under Base Outline > Settings I used the Logo/Image particle to add my logo and Base Outline > Page Settings I used the Assets particle to add my favicon.
Can I do a file override somewhere that will not be affected by an update and will remove the query string from these 2 images?
Also, is there really a need to include query strings for logo and favicon?
It doesn't seem these images would change very often or at all.
Thanks,
T.Goodrich
PS.. Using the latest Joomla 3, Gantry 5 and Hydrogen
Re: Is it possible to remove the logo & favicon query string in Gantry 5
Posted 9 years 2 months ago
Could you please post a URL to your site (this can be done in the secure area tab if you prefer) so we can look for you. Without a link to page where the problem is on your site it is quite hard for us to provide the best solution due to so many variables. We try to provide file names and line numbers for code changes and if changes have already been made then our advice may be incorrect.
I suspect the query strings that you mention are the asset timestamps. You can turn this off in plugins "system - Gantry 5" - Asset timestamp - OFF. Asset timestamps are always enabled in Development mode to force the browser to get the latest version of the asset without a refresh of the page - so you might like to switch to production mode in Gantry 5 too.
Regards, Mark.
Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
Re: Is it possible to remove the logo & favicon query string in Gantry 5
Posted 9 years 2 months ago
Hi Mark,
Thanks, you were spot on about the asset timestamps. I did have my site set to Production Mode before posting but I checked the plugin "System - Gantry 5" - Asset timestamp as you suggested and saw it was turned on. I turned it off and the query strings disappeared. I also appreciate that you explained what it is used for.
Thank You!!
I have also posted my website URL in the secure area if you would like to check it out and let me know what you think. It's my first site using Gantry 5 and I have to say I am very impressed by Gantry 5. It was very easy to throw this site together considering I am not a professional web developer.
Re: Is it possible to remove the logo & favicon query string in Gantry 5
Posted 9 years 2 months ago
I'm glad that you like Gantry 5.
I think you have a bit more work to do to tidy things up a bit in the other viewport sizes (see my screenshot).
Also you need to resolve the many W3C validation errors that you have.
Regards, Mark.
Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.