Automated Testing
Table of contents
Our site previously went down due to our hosting provider, and the reasons was unclear. Majority of assets such as css, js and photos were simply returning 404 (including our favicon).
Google happened to have crawled the main page during this downtime, and realized that the favicon was 404 – and hence removed the favicon from being displayed in our SERP!
Google caches the favicon and takes a little longer to update favicons. Crawling favicons are considered lower priority, and we have no way of increasing the frequency that Favicons are crawled, and updated
So, if you’re planning to update favicons, ensure you buffer a few days because there are lag time!
Issue
Not having our favicon displayed significantly impacts our Click Through Rate – as the site will be deemed as less trustworthy!
Think we’re downplaying it, check it out for yourself – I’m sure you’ll be less likely to click on the results that has no icon (favicon):
Troubleshooting Steps
Ofcourse we verified the above based on hindsight, as we roughly know the cause now.
The issue has since been fixed, so we can infer from experience that the downtime indeed caused the favicon to be updated by Google and not served.
We checked and ensured the following items are handled:
- Ensured that we have the favicon in our html element header
- The favicon links must be accessible. The links are as follows (and all are accessbile):
https://petcoach.sg/wp-content/uploads/2021/07/Main-Logo-cropped-e1672628553536-100x100.png
https://petcoach.sg/wp-content/uploads/2021/07/Main-Logo-cropped-e1672628553536-298x300.png
https://petcoach.sg/wp-content/uploads/2021/07/Main-Logo-cropped-e1672628553536-298x300.png
- Ensure the following path redirects to the favicon and does not result in 404:
- petcoach.sg/favicon.ico
- petcoach.sg/favicon.ico/
- Check Google favicon API that the favicon is reachable:
- https://www.google.com/s2/favicons?domain=petcoach.sg
- https://www.google.com/s2/favicons?domain=petcoach.sg
Sought Community Help
Asking the community in webmaster forum – experts seems to notice minor sub-optimal sizing issues. However, there is no reason why the favicon should not be accessible by google.
The advise was to wait out, and see if the favicon shows in awhile – because Google Favicon updates does take time (since it’s not a priority)
You can check out our cry for help here!
The expert advise is that, the favicon seems accessbile – we might simply have to wait awhile:
Success – Google Updated Favicon
After waiting for one week, the favicon is now updated:
This further stregthened our suspcicion that the original downtime, which resulted in 404 when accessing favicon urls, caused google to infer that the favicon is no longer available – and hence, remove the favicon.
A costly error, due to the downtime.
Thanks to the community for helping me check through any possible optimisations or errors. Indeed grateful, for the collective insights!
FAQ
Some of the checks that we have done, was based on our research, we specify them below here for future reference.
Why ensure favicon.ico in the root path redirects correctly
By default, Google check
Google only craws the favicon in your main page. If your main page and sub-pages have favicon links in the html header that points to different favicons, Google will only take the favicon that is specified in the main page
You can read further favicon documentation by Google themselves, check it out here!
Where is the Google Favicon API
This is actually, undocumented – but community is aware of the API, and it’s referenced in multiple blogs.
The API is a simple get request that works like this:
https://www.google.com/s2/favicons?domain=${domain}&sz=${size}
You can further check it out in this blog here!