Conversation

TIL: “21.1% of /favicon.ico files are secretly PNGs, including Reddit’s.” So instead of having to generate archaic ico file, we can serve PNGs from /favicon.ico route with a image/png content-type.
Quote Tweet
So, we did something crazy. We Analyzed 425,909 Favicons - iconmap.io
Show this thread
Image
5
39
Replying to
For grapheneos.org/features we serve an SVG favicon with dark mode support for /favicon.ico to browsers advertising support for it in the request headers. It's nicer than only providing it via HTML because it works properly for non-HTML files like a text file, PDF, image, etc.
Replying to and
Chromium-based browsers explicitly advertise support for SVG when fetching /favicon.ico as they do with other images. Firefox doesn't and we don't want any hard-wired user agent checks so they only use the SVG for HTML documents where it's listed as the highest priority favicon.
1