Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why am I seeing a 404 (Not Found) error failed to load favicon.ico when not using this?

Tags:

html

iis

Synopsis

After creating a simple HTML template for testing purpose, with no favicon.ico, I receive an error in the console "Failed to load resource: the server responded with a status of 404 (Not Found)" | "http://127.0.0.1:47021/favicon.ico".

I am trying to figure out where this error is coming from and wondered if someone had any ideas to point me in the right direction.

My HTML page looks like this:

<!doctype html> <html> <head>     <meta charset="UTF-8">     <title>Simple JavaScript Tester 01</title> </head> <body>  <script src="script.js"></script> </body> </html> 

When I run this page in Chrome browser and open the console, I see the error message "Failed to load resource: the server responded with a status of 404 (Not Found)" | "http://127.0.0.1:47021/favicon.ico". I am running this on a local IIS server. I see this same error message each time I create a new page.

Is it possible this error is coming from another page on my IIS server that I am unaware of?

like image 627
John Smith Avatar asked Aug 25 '16 15:08

John Smith


People also ask

How do I fix my favicon?

Resetting the page or clearing the cache on your site or browser may be sufficient to fix the issue. If that doesn't work, try other options. Different graphic formats are used to create a favicon, but some of them are not supported by all browsers and their versions. In this case, it is recommended to use .

What is the meaning of favicon ICO?

A favicon (/ˈfæv. ɪˌkɒn/; short for favorite icon), also known as a shortcut icon, website icon, tab icon, URL icon, or bookmark icon, is a file containing one or more small icons, associated with a particular website or web page.


1 Answers

By adding this to the header section, you will definitely remove the error in the console log:

<link rel="shortcut icon" href=""> 

From Chrome 2020 this is the solution :

<link rel="shortcut icon" href="#"> 
like image 152
pollux1er Avatar answered Sep 18 '22 06:09

pollux1er