Will browsers request /favicon.ico or <link> first?

前端 未结 3 1391
孤独总比滥情好
孤独总比滥情好 2020-12-10 06:34

I want to set a favicon to be requested from a static file server instead of the main web server for performance optimization.

If I specify a

3条回答
  •  北荒
    北荒 (楼主)
    2020-12-10 06:58

    I did the test suggested above. I placed a /favicon.ico in the root of a domain, and a link, and fired up the page in:

    1. Opera 10
    2. Opera 9.64
    3. Firefox 3.5
    4. IE 6
    5. IE 7
    6. IE 8
    7. Safari 4

    They all showed the icon loaded with (located on an external server). I checked access.log, and there were no requests to /favicon.ico!

    I then commented out the , checked again in all browsers, and they showed the /favicon.ico icon and corresponding entries in access.log.

提交回复
热议问题