4 ms·
The new one probably not populated to all their location yet, but adding a random query string does the trick. https://www.google.com/favicon.ico?newlogo https
by sirn 11y ago
The new one probably not populated to all their location yet, but adding a random query string does the trick.
https://www.google.com/favicon.ico?newlogo https://www.google.com/favicon.ico?newlogo
(I'm seeing a four-colors capitalize G.)
- Eupolemos 11y agoI don't think that works very well as a favicon - I see a "c" first and then my eyes have to force it into a G. Thank you for linking it, hadn't reached my interwebs yet.
- ljk 11y agowhy does adding "?" work at getting a different logo? not a web guy here
- f0under 11y agoAnything after "?" is a query parameter that the server can read and then apply additional logic to for a response. In this case, they have code that responds to new logo and returns the new logo instead of the previous one.
- yamaneko 11y agoIt's actually not querying anything, since it works for any query you pass. What happens is that you're bypassing cache because you're loading a different page, as explained by sirn above. https://www.google.com/favicon.ico?anyquery https://www.google.com/favicon.ico?anyquery
- sirn 11y agoI'm not sure how it works at Google, but adding a random query string usually helps because of how proxy servers handle caching. Proxy servers usually treat an URL with different query string as different resource and cache them separately (e.g. /posts?page=2 is definitely not the same as /posts?page=1). This is not only applies to caching by ISP, but also includes caching by the website itself as well (some websites put proxy in front of their server to cache rarely changed portion of the site, or even using CDN.).
- ljk 11y agointeresting, thanks!