Scott Head
Scott Head

Reputation: 23

Getting a "GET /favicon.ico HTTP/1.1" 404 when running my FOAM website

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

Answers (1)

Potassium Ion
Potassium Ion

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 the favicon.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.

Screenshot

Upvotes: 2

Related Questions