While looking through the access log of my webserver, I notice a few favicon requests that shows 404 error:
16:17:28 GET /folder/abc.jpg 200 http://example.com/ Mozilla... Firefox/31.0 16:17:28 GET /folder/efg.png 200 http://cdn.example.com/style.css Mozilla... Firefox/31.0 16:17:38 GET /favicon.ico 404 - Mozilla... Firefox/31.0
This comes as a surprise to me because I have the following HTML code to tell browsers where to fetch the favicon on all my web pages.
<link rel='shortcut icon' href='//cdn.example.com/images/favicon.ico'>
Somehow, I still receive requests to
http://example.com/favicon.ico occasionally even though Firefox did download the favicon from the alternate location. Is this behaviour peculiar to Firefox browsers or do I have to provide a favicon in the webroot to avoid 404 errors?
Further, if I provide both, which favicon would the browser use?