Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

javascript

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?

like image 475
Scott Head Avatar asked Oct 20 '25 02:10

Scott Head


1 Answers

<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

like image 177
Potassium Ion Avatar answered Oct 22 '25 17:10

Potassium Ion



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!