Favicon ico ошибка

I downloaded the Netbeans IDE to code in HTML. When I run my code, chrome is opening and everything is working just fine. I’m getting some sort of error in the Output — Browser Log.

Failed to load resource: net::ERR_EMPTY_RESPONSE (20:00:55:963 | error, network)
at http://localhost:8383/favicon.ico

How do I fix it?

starball's user avatar

starball

21.1k7 gold badges47 silver badges255 bronze badges

asked Jun 26, 2015 at 14:34

Rockstar5645's user avatar

Rockstar5645Rockstar5645

4,3768 gold badges37 silver badges62 bronze badges

2

I have had this error for some time as well. It might be some kind of netbeans bug that has to do with netbeans connector. I can’t find any mention of favicon.ico in my code or in the project settings.

I was able to fix it by putting the following line in the head section of my html file

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

I am currently using this in my testing environment, but I would remove it for any production environment.

Nam G VU's user avatar

Nam G VU

33.3k69 gold badges233 silver badges373 bronze badges

answered Jul 9, 2015 at 22:46

element11's user avatar

10

The accepted answer didn’t work for me, I had to add a value to the href attribute:

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

answered May 4, 2017 at 19:43

Agu Dondo's user avatar

Agu DondoAgu Dondo

12.7k7 gold badges58 silver badges68 bronze badges

8

The accepted answer didn’t work for me so I’ve found this solution.

It may be related to the HTML version as the most voted solution there states:

If you need your document to validate against HTML5 use this instead:

<link rel="icon" href="data:;base64,iVBORw0KGgo=">

See the link for more info.

answered Nov 20, 2015 at 1:50

Arnon Erez's user avatar

Arnon ErezArnon Erez

5604 silver badges7 bronze badges

1

The answers above didn’t work for me. I found a very good article for Favicon, explaining:

  • what is a Favicon;
  • why does Favicon.ico show up as a 404 in the log files;
  • why should You use a Favicon;
  • how to make a Favicon using FavIcon from Pics or other Favicon
    creator;
  • how to get Your Favicon to show.

So I created Favicon using FavIcon from Pics. Put it in folder (named favicon) and add this code in <head> tag:

<link rel="shortcut icon" href="favicon/favicon.ico">
<link rel="icon" type="image/gif" href="favicon/animated_favicon1.gif">

Now there is no error and I see my Favicon:

enter image description here

answered Apr 26, 2018 at 21:46

Petya Kostova's user avatar

Petya KostovaPetya Kostova

4812 gold badges6 silver badges12 bronze badges

2

favicon.ico is the icon of a website on the title bar of your website.
Netbeans couldnt find the favicon.ico file in your website folder

if you dont want it, you can remove the line that is similar to this in your head section

 <link rel="shortcut icon" href="favicon.ico">

or if you want to use an icon for the title bar, you can use icon convertor to generate a .ico image and keep it in your website folder and use the above line in the head section

answered Jun 26, 2015 at 14:41

Trinadh venna's user avatar

3

For me the answer didn’t work too, but this work fine:

<link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon">

answered Nov 10, 2016 at 12:12

Sr Julien's user avatar

Sr JulienSr Julien

4941 gold badge8 silver badges27 bronze badges

1

You can provide your own image and reference it in the head, for example:

<link rel="shortcut icon" href="images/favicon.ico">

Tunaki's user avatar

Tunaki

133k46 gold badges342 silver badges424 bronze badges

answered Sep 4, 2016 at 14:59

Larry's user avatar

LarryLarry

511 silver badge1 bronze badge

Also, be careful so your href location isn’t faulty.
Study case:

My index page was in a temporary sub-folder named LAYOUTS.
To reach the favicon.png from inside the IMAGES folder, which was a sibling of the LAYOUTS folder, I had to put a path in my href like this

href="../images/favicon-32x32.png"

Double periods are necessary for folder navigation «upwards», then the forward slash + images string gets you into the images folder (performing a tree branch «jump») and finally you get to reference your file by writing favicon-32x32.png.

This explanation is useful for those that start out from scratch and it would have been useful to have seen it a couple of times since I would forget that I had certain *.php files outside the LAYOUTS folder which needed different tree hrefs on my links, from the HEAD section of each page.

Reference the path to your favicon image accordingly.

Nathan Tuggy's user avatar

Nathan Tuggy

2,23527 gold badges30 silver badges38 bronze badges

answered Aug 15, 2017 at 2:51

Johnny's user avatar

JohnnyJohnny

4991 gold badge7 silver badges15 bronze badges

1

This problem occurs when you do not declare at the top of your HTML file in HEDER this tag.

<link rel="icon" href="your_address_icon" type="image/x-icon">

answered Jan 27, 2019 at 10:57

Abdesselam's user avatar

AbdesselamAbdesselam

1,00110 silver badges10 bronze badges

add this code in your page index

<link rel="icon" 
      type="image/png" 
      href="http://example.com/myicon.png">

answered Dec 3, 2020 at 12:33

yassine dotma's user avatar

It’s a nightmare since each browser/device handles it differently.

Favicon generator helps me a lot for those applications where we need to cover the most possible scenarios.

https://realfavicongenerator.net/

You just need a png image 260px x 260px (at least) and from there the generator will create all references you need within your web page.

You just need to add this references and images to your application.

enter image description here

answered May 28, 2020 at 22:41

David Castro's user avatar

David CastroDavid Castro

1,78321 silver badges21 bronze badges

If favicon is in the root:

<link rel="shortcut icon" href="../favicon.ico" />

answered Jul 3, 2021 at 8:04

Alireza Bijantabar's user avatar

Server Configuration Nginx

If you are deploying your application to a server that is running Nginx, you may use the following configuration file as a starting point for configuring your web server. Most likely, this file will need to be customized depending on your server’s configuration. If you would like assistance in managing your server, consider using a first-party Laravel server management and deployment service.

server {
    listen 80;
    listen [::]:80;
    server_name example.com;
    root /srv/example.com/public;
 
    add_header X-Frame-Options "SAMEORIGIN";
    add_header X-Content-Type-Options "nosniff";
 
    index index.php;
 
    charset utf-8;
 
    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }
 
    location = /favicon.ico { access_log off; log_not_found off; }
    location = /robots.txt  { access_log off; log_not_found off; }
 
    error_page 404 /index.php;
 
    location ~ \.php$ {
        fastcgi_pass unix:/var/run/php/php8.0-fpm.sock;
        fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
        include fastcgi_params;
    }
 
    location ~ /\.(?!well-known).* {
        deny all;
    }
}

edit these line into site-avalible in your files.

 location = /favicon.ico { access_log off; log_not_found off; }
    location = /robots.txt  { access_log off; log_not_found off; }

Optimization — Autoloader Optimization

When deploying to production, make sure that you are optimizing Composer’s class autoloader map so Composer can quickly find the proper file to load for a given class:

composer install --optimize-autoloader --no-dev

thankyou! @syedasadrazadevops

answered Feb 15, 2022 at 5:55

SyedAsadRazaDevops's user avatar

I had a weird situation. Mine was working fine and all of sudden stopped with that error message. I already had the header declaration. So I was dumb founded as to why it wasn’t working.

<link rel="shortcut icon" href="favicon.png">

Literally nothing else on the site had an issue that I could tell. The only thing that fixed it for me was to restart my Apache service and all was good again.

if nothing else is working, give that a shot and see what happens.

answered May 15, 2019 at 7:40

Panama Jack's user avatar

Panama JackPanama Jack

24.2k10 gold badges63 silver badges95 bronze badges

0

I was getting the same fav icon error — 404 (Not Found). I used the following element in the <head> element of my index.html file and it fixed the error:

<link rel="icon" href="data:;base64,iVBORw0KGgo=">

Pavel Vladov's user avatar

Pavel Vladov

4,7173 gold badges35 silver badges39 bronze badges

answered Jul 14, 2020 at 9:27

t sriya's user avatar

1

In Angular earlier we had .angular-cli.json file which referred to favicon.ico. If you’ll upgrade into one of the newer versions of Angular then you’ll have angular.json instead. For these newer versions, you have to refer the favicon path in your index.html from now onwards.

answered Aug 2, 2020 at 17:15

Daniel Danielecki's user avatar

I copied the favicon.ico to assets folder its worked for me .

answered Jan 26, 2021 at 12:19

sanjay's user avatar

Try this add «icon» with your stylesheet Maybe it solve your error «favicon.ico:1 not found »

OR
First Try to understand about favicon.enter image description here
SET your favicon icon file in your folder. You can generate your favicon using «https://favicon.io/favicon-generator/».

answered Feb 10, 2021 at 11:35

Sweta Jha's user avatar

In case anyone else is running into a 403 error after downloading a favicon package, I needed to chmod the new favicon folder/file permissions to 755 so Apache had permission to read the file.

answered Jul 26, 2021 at 12:41

TommyGunn32's user avatar

TommyGunn32TommyGunn32

9241 gold badge8 silver badges22 bronze badges

i was getting the same problem (using thymeleaf) i solved by downloading the bootstrap link that i’m using on my html to my spring-boot-project
just hover your mouse over the link and your IDE (ps :intellij is the best) will propose to you to downloaded & and bom problem solved

answered Dec 8, 2021 at 14:07

nidhal louremi's user avatar

I downloaded the Netbeans IDE to code in HTML. When I run my code, chrome is opening and everything is working just fine. I’m getting some sort of error in the Output — Browser Log.

Failed to load resource: net::ERR_EMPTY_RESPONSE (20:00:55:963 | error, network)
at http://localhost:8383/favicon.ico

How do I fix it?

starball's user avatar

starball

21.1k7 gold badges47 silver badges255 bronze badges

asked Jun 26, 2015 at 14:34

Rockstar5645's user avatar

Rockstar5645Rockstar5645

4,3768 gold badges37 silver badges62 bronze badges

2

I have had this error for some time as well. It might be some kind of netbeans bug that has to do with netbeans connector. I can’t find any mention of favicon.ico in my code or in the project settings.

I was able to fix it by putting the following line in the head section of my html file

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

I am currently using this in my testing environment, but I would remove it for any production environment.

Nam G VU's user avatar

Nam G VU

33.3k69 gold badges233 silver badges373 bronze badges

answered Jul 9, 2015 at 22:46

element11's user avatar

10

The accepted answer didn’t work for me, I had to add a value to the href attribute:

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

answered May 4, 2017 at 19:43

Agu Dondo's user avatar

Agu DondoAgu Dondo

12.7k7 gold badges58 silver badges68 bronze badges

8

The accepted answer didn’t work for me so I’ve found this solution.

It may be related to the HTML version as the most voted solution there states:

If you need your document to validate against HTML5 use this instead:

<link rel="icon" href="data:;base64,iVBORw0KGgo=">

See the link for more info.

answered Nov 20, 2015 at 1:50

Arnon Erez's user avatar

Arnon ErezArnon Erez

5604 silver badges7 bronze badges

1

The answers above didn’t work for me. I found a very good article for Favicon, explaining:

  • what is a Favicon;
  • why does Favicon.ico show up as a 404 in the log files;
  • why should You use a Favicon;
  • how to make a Favicon using FavIcon from Pics or other Favicon
    creator;
  • how to get Your Favicon to show.

So I created Favicon using FavIcon from Pics. Put it in folder (named favicon) and add this code in <head> tag:

<link rel="shortcut icon" href="favicon/favicon.ico">
<link rel="icon" type="image/gif" href="favicon/animated_favicon1.gif">

Now there is no error and I see my Favicon:

enter image description here

answered Apr 26, 2018 at 21:46

Petya Kostova's user avatar

Petya KostovaPetya Kostova

4812 gold badges6 silver badges12 bronze badges

2

favicon.ico is the icon of a website on the title bar of your website.
Netbeans couldnt find the favicon.ico file in your website folder

if you dont want it, you can remove the line that is similar to this in your head section

 <link rel="shortcut icon" href="favicon.ico">

or if you want to use an icon for the title bar, you can use icon convertor to generate a .ico image and keep it in your website folder and use the above line in the head section

answered Jun 26, 2015 at 14:41

Trinadh venna's user avatar

3

For me the answer didn’t work too, but this work fine:

<link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon">

answered Nov 10, 2016 at 12:12

Sr Julien's user avatar

Sr JulienSr Julien

4941 gold badge8 silver badges27 bronze badges

1

You can provide your own image and reference it in the head, for example:

<link rel="shortcut icon" href="images/favicon.ico">

Tunaki's user avatar

Tunaki

133k46 gold badges342 silver badges424 bronze badges

answered Sep 4, 2016 at 14:59

Larry's user avatar

LarryLarry

511 silver badge1 bronze badge

Also, be careful so your href location isn’t faulty.
Study case:

My index page was in a temporary sub-folder named LAYOUTS.
To reach the favicon.png from inside the IMAGES folder, which was a sibling of the LAYOUTS folder, I had to put a path in my href like this

href="../images/favicon-32x32.png"

Double periods are necessary for folder navigation «upwards», then the forward slash + images string gets you into the images folder (performing a tree branch «jump») and finally you get to reference your file by writing favicon-32x32.png.

This explanation is useful for those that start out from scratch and it would have been useful to have seen it a couple of times since I would forget that I had certain *.php files outside the LAYOUTS folder which needed different tree hrefs on my links, from the HEAD section of each page.

Reference the path to your favicon image accordingly.

Nathan Tuggy's user avatar

Nathan Tuggy

2,23527 gold badges30 silver badges38 bronze badges

answered Aug 15, 2017 at 2:51

Johnny's user avatar

JohnnyJohnny

4991 gold badge7 silver badges15 bronze badges

1

This problem occurs when you do not declare at the top of your HTML file in HEDER this tag.

<link rel="icon" href="your_address_icon" type="image/x-icon">

answered Jan 27, 2019 at 10:57

Abdesselam's user avatar

AbdesselamAbdesselam

1,00110 silver badges10 bronze badges

add this code in your page index

<link rel="icon" 
      type="image/png" 
      href="http://example.com/myicon.png">

answered Dec 3, 2020 at 12:33

yassine dotma's user avatar

It’s a nightmare since each browser/device handles it differently.

Favicon generator helps me a lot for those applications where we need to cover the most possible scenarios.

https://realfavicongenerator.net/

You just need a png image 260px x 260px (at least) and from there the generator will create all references you need within your web page.

You just need to add this references and images to your application.

enter image description here

answered May 28, 2020 at 22:41

David Castro's user avatar

David CastroDavid Castro

1,78321 silver badges21 bronze badges

If favicon is in the root:

<link rel="shortcut icon" href="../favicon.ico" />

answered Jul 3, 2021 at 8:04

Alireza Bijantabar's user avatar

Server Configuration Nginx

If you are deploying your application to a server that is running Nginx, you may use the following configuration file as a starting point for configuring your web server. Most likely, this file will need to be customized depending on your server’s configuration. If you would like assistance in managing your server, consider using a first-party Laravel server management and deployment service.

server {
    listen 80;
    listen [::]:80;
    server_name example.com;
    root /srv/example.com/public;
 
    add_header X-Frame-Options "SAMEORIGIN";
    add_header X-Content-Type-Options "nosniff";
 
    index index.php;
 
    charset utf-8;
 
    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }
 
    location = /favicon.ico { access_log off; log_not_found off; }
    location = /robots.txt  { access_log off; log_not_found off; }
 
    error_page 404 /index.php;
 
    location ~ \.php$ {
        fastcgi_pass unix:/var/run/php/php8.0-fpm.sock;
        fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
        include fastcgi_params;
    }
 
    location ~ /\.(?!well-known).* {
        deny all;
    }
}

edit these line into site-avalible in your files.

 location = /favicon.ico { access_log off; log_not_found off; }
    location = /robots.txt  { access_log off; log_not_found off; }

Optimization — Autoloader Optimization

When deploying to production, make sure that you are optimizing Composer’s class autoloader map so Composer can quickly find the proper file to load for a given class:

composer install --optimize-autoloader --no-dev

thankyou! @syedasadrazadevops

answered Feb 15, 2022 at 5:55

SyedAsadRazaDevops's user avatar

I had a weird situation. Mine was working fine and all of sudden stopped with that error message. I already had the header declaration. So I was dumb founded as to why it wasn’t working.

<link rel="shortcut icon" href="favicon.png">

Literally nothing else on the site had an issue that I could tell. The only thing that fixed it for me was to restart my Apache service and all was good again.

if nothing else is working, give that a shot and see what happens.

answered May 15, 2019 at 7:40

Panama Jack's user avatar

Panama JackPanama Jack

24.2k10 gold badges63 silver badges95 bronze badges

0

I was getting the same fav icon error — 404 (Not Found). I used the following element in the <head> element of my index.html file and it fixed the error:

<link rel="icon" href="data:;base64,iVBORw0KGgo=">

Pavel Vladov's user avatar

Pavel Vladov

4,7173 gold badges35 silver badges39 bronze badges

answered Jul 14, 2020 at 9:27

t sriya's user avatar

1

In Angular earlier we had .angular-cli.json file which referred to favicon.ico. If you’ll upgrade into one of the newer versions of Angular then you’ll have angular.json instead. For these newer versions, you have to refer the favicon path in your index.html from now onwards.

answered Aug 2, 2020 at 17:15

Daniel Danielecki's user avatar

I copied the favicon.ico to assets folder its worked for me .

answered Jan 26, 2021 at 12:19

sanjay's user avatar

Try this add «icon» with your stylesheet Maybe it solve your error «favicon.ico:1 not found »

OR
First Try to understand about favicon.enter image description here
SET your favicon icon file in your folder. You can generate your favicon using «https://favicon.io/favicon-generator/».

answered Feb 10, 2021 at 11:35

Sweta Jha's user avatar

In case anyone else is running into a 403 error after downloading a favicon package, I needed to chmod the new favicon folder/file permissions to 755 so Apache had permission to read the file.

answered Jul 26, 2021 at 12:41

TommyGunn32's user avatar

TommyGunn32TommyGunn32

9241 gold badge8 silver badges22 bronze badges

i was getting the same problem (using thymeleaf) i solved by downloading the bootstrap link that i’m using on my html to my spring-boot-project
just hover your mouse over the link and your IDE (ps :intellij is the best) will propose to you to downloaded & and bom problem solved

answered Dec 8, 2021 at 14:07

nidhal louremi's user avatar

Have you ever stumbled upon the famous «Favicon not found» error while checking your website’s 404 error logs? Getting this error even though you have a favicon image is annoying, isn’t it? This post will explain how to get rid of that error from your logs for good.

I quit trying to make sense of why some modern web browsers request resources that are not mentioned on a web page long ago, such as Firefox seeking a favicon icon (favicon.ico) religiously in your website’s root folder, or iOS browsers looking for almost a dozen different apple touch icons (apple-touch-icon-…) with different sizes, as if the Internet will collapse if they are not found. Instead of wishing for web browsers to behave the way I desired as a webmaster, I decided to play the game by its rules and looked for ways to get rid of annoying errors of this kind, even though it meant unproductive additional work.

Briefly speaking, the 404 HTTP status code is triggered when a web browser (client) requests a resource (a page, file, image etc.) on a website (web server) but that resource does not exist or cannot be located correctly. For example, considering our case, if the web browser sends a request to a favicon image file located at,

https://www.tutsandtips.com/favicon.ico

but such a file does not exist, it will create a 404 error which will be sent back to the browser (it won’t be displayed to the user in browser window since it’s not the same as a page not found error or server not found error), as well as logged in the access logs of the website like the following:

«GET /favicon.ico HTTP/1.1» 404

This error log will also be displayed in your traffic stats file (e.g. AWStats), where 404 errors are listed.

Why is «Favicon.ico Not Found» Error Triggered Even Though There is a Favicon Image on My Website?

To answer this question, we need to understand how some web browsers work.

A 404 error being generated for a supposed-to-exist but not-existing file is totally understandable, in fact it is what must happen (and what happens) in order to give a clue to the website administrator to fix such errors. For example, if you forget to upload an image that is linked to from one of your pages, loading that page will (and should) cause a 404 error for that image. Hence, when you see that error in the log, you can upload the image.

What I explained above is the natural and expected behavior of a web browser; however, some browsers do create resource requests (GET) even though they are not linked to or mentioned on your web page. To clarify this, let’s assume you created a favicon image for your website, named it as icon.png and uploaded it to the following location via a free FTP software or via File Manager of your hosting:

https://www.tutsandtips.com/images/icon.png

And you linked to it using the HTML <link> tag, as it is how it is instructed to add a favicon to your website in the HTML specification.

<link rel=»icon» href=»/images/icon.png»>

TIP: You can also refer to our more detailed tutorial about how to add a favicon icon to your website.

Now, while some browsers respect your choice of name and location for your favicon icon (you should be able to name it whatever you want and place it wherever you want, right?) and find it at your specified place with no issues, some other browsers such as Firefox, in an incomprehensible way, insists on seeking «a» favicon icon which is named as favicon.ico and located in the root directory of your site.

/favicon.ico

If it can’t find that file there, then it will cause a 404 error to be generated and logged. This may be a small, negligible thing for some webmasters but for me and I am sure for you too since you are reading this post, it is unacceptable because 1) the browser makes a request for a non-existent file that is not linked to from the page, 2) it causes a 404 error to be generated and logged which keeps you busy while checking your logs, 3) it consumes bandwidth by grabbing the 404 file since it can’t find the favicon.

For the above reasons, I decided to get rid of this error once and for all and came up with the following solution.

The Solution for 404 Favicon Not Found Error

The solution is not the most efficient but it is simple enough and it will help you never see a 404 error for a non-existent favicon.ico in your logs again.

Here are the steps:

STEP 1: Create a .ico file and name it as favicon.ico.

You can use one of the free online graphic design programs and image conversion tools to help you while creating favicons. The favicon file dimensions can be anything from 16×16 pixels and higher; bigger images will look better on mobile phones and tablets when your site is bookmarked like an app. Also don’t forget to optimize the file to save bandwidth. Not recommended tip: If you don’t care about having a favicon, simply create an empty text file -0 bytes- and save it as favicon.ico.

STEP 2: When the favicon icon is ready, upload it to your website’s root directory. The root directory is where the index file (index.html, index.php etc.) is located.

https://www.tutsandtips.com/favicon.ico

STEP 3: Open a web browser and make sure your favicon is accessible by typing its URL (simply replace the domain in the above URL) into the address bar and opening it.

If you can view your favicon, that means it is ready for visitors and browsers. From now on, you will not receive any 404 errors for the favicon image.

TIP: Here are some other solutions to common errors that you might be interested in:
White Question Mark in Black Diamonds Error
No Video with Supported Format and MIME Type Found Error

Поднял голый vps + lamp для опытов. Проверяю работу Хромом и тут же в логах появляются запросы favicon.ico и, соответственно, в логах об ошибках тоже потому что этого файла никто не создавал и не ссылался на него.

Посмотрел на одном из сайтов — весь лог ошибок засран запросами /favicon.ico 404, хотя он лежит в /images/favicon.ico и в коде страниц путь указан именно в поддиректории.

Хром по умолчанию ищет этот файл и будет долбиться вечно пока не найдёт его?

— Есть /favicon.ico?

— Нет.

— А если найду?


  • Вопрос задан

  • 15139 просмотров

Пригласить эксперта

А как простите хром должен узнать, что файла нет, если он его не запросит?
Он не должен искать его во всех подряд каталогах, файл должен быть в корне, поэтому класть в images в subimages и прочие директории смысла нету.

Поиск в корневой директории favicon.ico осуществляется в случае если в явно не указано местоположение, через использование тега
<link rel="icon" type="image/png" href="/someimage.png" />
Проверьте, обрабатывается ли ваше указание, возможно вы допустили ошибку/опечатку в разметке. Посмотрите консоль в браузере, возможно там есть какие-то ошибки. и т.д.

Смотрите, недавно логировал запросы к сайту на ASP.MVC, страницу как раз открывал через хром:
Первое обращение как раз к /favicon.ico
Второе обращение к странице которая указана в адресной строке
т.е. по логике он даже не смотрит указан ли у вас link rel=«shortcut icon», т.к. сначала пытается загрузить иконку, а уже потом страницу, в которой указан данный атрибут.

читал об этом на стековерфлоу. Много букв, но если коротко, то просто смиритесь с этим. Не один, так другой браузер всегда будут ломиться именно на /favicon.ico. Рекомендуется отключить логирование таких запросов на уровне вебсервера и просто забыть.


  • Показать ещё
    Загружается…

21 сент. 2023, в 13:38

2500 руб./за проект

21 сент. 2023, в 13:29

5000 руб./за проект

21 сент. 2023, в 12:59

15000 руб./за проект

Минуточку внимания

When I run my project in browser I get the «can not find favicon.ico» error in browser console:

Failed to load resource: the server responded with a status of 404 (Not Found)
:8080/favicon.ico

enter image description here

But when I search for favicon in whole project in WebStorm it finds nothing:

enter image description here

LazyOne's user avatar

LazyOne

159k45 gold badges390 silver badges392 bronze badges

asked Apr 9, 2018 at 2:36

sof-03's user avatar

This is normal. No matter if you declared it or not in your code, Chrome will try will try to fetch favicon.ico at the root of your site to display it in your tab. In your case it will try to fetch: http://localhost:8080/favicon.ico

All browsers will do this except SeaMonkey according to Wikipedia article on Favicon

In the old days, this was the standard way of personalizing the browser icon. Now there is a ton of possible icons you can set for various devices: https://stackoverflow.com/a/26768184/1375487

Also, you can check this answer as it suggests ways to prevent that auto-fetch: https://webmasters.stackexchange.com/a/34572

In any case, the best practice would be to set a favicon.ico for your project.

answered Apr 9, 2018 at 2:59

tlebel's user avatar

tlebeltlebel

3091 silver badge10 bronze badges

favicon.ico is the icon on the title bar in your website.

Browser did not find it in your website.

You should provide it to your index.html:

<link rel="shortcut icon" href="assets/images/favicon.ico">

The path you can change by your case.

answered Apr 9, 2018 at 2:39

aircraft's user avatar

aircraftaircraft

25.2k28 gold badges91 silver badges166 bronze badges

Понравилась статья? Поделить с друзьями:
  • Family library sharing ошибка
  • Fallout shelter ошибка при запуске
  • Fallout new vegas ошибка сохранения
  • Fallout new vegas ошибка памяти
  • Fallout new vegas ошибка dvd rom