Going through 404 error on my site, I have noticed a bunch of problems with favicons:
/apple-touch-icon-120x120.png
/apple-touch-icon-120x120-precomposed.png
/apple-touch-icon-152x152.png
/apple-touch-icon-152x152-precomposed.png
/apple-touch-icon-precomposed.png
/apple-touch-icon.png
/favicon.ico
Interesting part is that I have the following code on every page
<link rel="shortcut icon" href="/public/img/favicon.ico">
<link rel="apple-touch-icon image_src" href="/public/img/apple-big.png">
But I see that sometimes in the logs I see "GET /public/img/favicon.ico HTTP/1.1" 200
which means that icon is taken from correct location, but sometimes "GET /favicon.ico HTTP/1.1" 404
.
I searched through the whole codebase trying to find where else favicon could be called, but with not luck. Any idea what might be wrong?
P.S. added user agents: "GET /favicon.ico HTTP/1.1" 404 409 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0"
/public/img/favicon.ico
in the correct format and return the appropriateContent-Type
header?"GET /public/img/favicon.ico HTTP/1.1" 200
is generated in logs. This is why I am so puzzled.favicon.ico
file in the root of the site, regardless of thelink
element. The fact that your 404 appears to be Firefox is a bit of a puzzle - unless it is a bot pretending to be Firefox (check the IP)? Which made me wonder whether theContent-Type
for your linked file was an issue? Is the same visitor not requesting your linked file at all?