Comment #5 on issue 39402 by tha...@chromium.org: Chrome requests favicons
on every request on pages that don't have a favicon
http://code.google.com/p/chromium/issues/detail?id=39402
I guess that's a reasonable bug. Let's see what triage says.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
I am seeing this bug myself, but I believe servers/scripts are handling
request improperly. View this example of a one-page request from Chrome and
Firefox.
Chrome requests the page, then the favicon. It then sends a HEAD request to
that page. My server was at default configurations, and was treating the
HEAD calls like GET or POST -- The script executed!
You can see that Firefox does not make this HEAD call below.
Scripts (or server configs) need to check for HEAD requests and deal with
them as needed. They are a standardized request.
http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.4
Chrome Request To listings.php?featured=1
71.60.236.20 - - [20/Feb/2011:12:52:12 -0500] "GET /listings.php?featured=1
HTTP/1.1" 200 1090 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US)
AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.82 Safari/534.16"
71.60.236.20 - - [20/Feb/2011:12:52:15 -0500] "GET /favicon.ico HTTP/1.1"
304 - "-" "Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.16
(KHTML, like Gecko) Chrome/10.0.648.82 Safari/534.16"
71.60.236.20 - - [20/Feb/2011:12:52:15 -0500] "HEAD
/listings.php?featured=1 HTTP/1.1" 200 - "-" "Mozilla/5.0 (X11; U; Linux
i686; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.82
Safari/534.16"
Firefox (and others) Request to listings.php?featured=1
71.60.236.20 - - [20/Feb/2011:12:58:34 -0500] "GET /listings.php?featured=1
HTTP/1.1" 200 1090 "-" "Mozilla/5.0 (X11; Linux i686; rv:2.0b12pre)
Gecko/20110213 Firefox/4.0b12pre"
71.60.236.20 - - [20/Feb/2011:12:58:38 -0500] "GET /favicon.ico HTTP/1.1"
200 450 "-" "Mozilla/5.0 (X11; Linux i686; rv:2.0b12pre) Gecko/20110213
Firefox/4.0b12pre"
I am also facing the same problem and due to this my site crashes as we
have used URL rewrite using .htaccess and any invalid request to our site
removes session. Best solution is if <link> attribute is provided in HTML
then and then chrome should send request for facicon. It should not send
request on its own. It should be as per the configuration of site owner.
Issue 122949 has been merged into this issue.