Menu

One mug, four files: our favicon.ico is a PNG, and two of the SVGs differ by a line that changes nothing
📰

One mug, four files: our favicon.ico is a PNG, and two of the SVGs differ by a line that changes nothing

DEV Community: html·Daniel Pertu·20 days ago
#voPDCR5L
#devto2#devto#dev#favicon#article
Reading 0:00
15s threshold

Our logo is a beer mug: a tapered body, a handle made of one stroked path, and four white ellipses for the foam. Call it fifteen elements. It is in the repository four times, in four different shapes, and I only went looking because two of the files are exactly the same size.

$ curl -s -o /dev/null -w '%{size_download} %{content_type}\n' https://pub-trivia.app/logo.svg 606 image/svg+xml $ curl -s -o /dev/null -w '%{size_download} %{content_type}\n' https://pub-trivia.app/favicon.svg 606 image/svg+xml

Enter fullscreen mode

Exit fullscreen mode

Same byte count, different content:

$ curl -s https://pub-trivia.app/logo.svg | md5 efd30e469953020c2576fb7ae094d65f $ curl -s https://pub-trivia.app/favicon.svg | md5 d7e66559089a819bb24ee70f9f634f9a

Enter fullscreen mode

Exit fullscreen mode

Both are public, so you can run those two commands yourself.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.