otsukare Thoughts after a day of work

Useless HTTP requests - favicon

Since favicon has been introduced by Microsoft, browsers have implemented it. The issue is that it is using the well-known location anti-pattern. So each time you are accessing a Web page for the first time such as http://example.org, the browser will make two HTTP requests:

http://example.org/
http://example.org/favicon.ico

You could set up a server and look at the results in your logs

127.0.0.1 - - [15/Feb/2011 20:28:25] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [15/Feb/2011 20:28:25] "GET /favicon.ico HTTP/1.1" 200 -

There is a proper way to add a favicon to your site.

<link rel="icon" 
      type="image/png" 
      href="/somewhere/myicon.png" />

I was curious if there was a way to remove the request of the favicon.

Browser config file Property Value


Opera 11 opera:config MultimediaAlwaysloadfavicon 0
Firefox 4 about:config browser.chrome.favicons false

browser configuration against favicons download

ps: if you know for other browsers, leave a comment.