Reputation: 23
Trying to run my foam website through the demo and I'm getting a 404. It is looking for a favicon.ico
that I never defined.
How do I get around this?
Upvotes: 2
Views: 13911
Reputation: 2195
<domain.com>/favicon.ico
is automatically loaded by the browser. It's the little icon that shows up next to the title in your open tabs and bookmarks. Try opening https://stackoverflow.com/favicon.ico for an example. Nothing in the code tells the browser to look for this; the browser just does it.
Notice how as of writing, that link redirects the url to a
cdn.sstatic.net
link. This means the browser shows you thefavicon.ico
file for Stack Overflow as requested, but then the tab itself shows https://cdn.sstatic.net/favicon.ico, which is the Stack Exchange icon. Screenshot provided for historical purposes.
Upvotes: 2