Favicon not showing up

前端 未结 11 2441
忘掉有多难
忘掉有多难 2020-12-05 04:40

I placed my favicon here:

http://www.vittoriosastarsnursery.com/favicon.ico

But for some reason it doesn\'t want to show in Firefox. It did work in IE, but I

相关标签:
11条回答
  • 2020-12-05 05:14

    For those who suffer from this problem, try move your favicon file to home directory. It worked for me and solved my problem.

    0 讨论(0)
  • 2020-12-05 05:15

    It is just a caching issue. Just change the file name and it will show up immediately... otherwise do nothing and it will show up eventually. Browsers are just very persistent with the favicon caching.

    0 讨论(0)
  • 2020-12-05 05:21

    Suddenly I found answer here

    You should add "?" to your favicon path and it works! Even with path such as images/favicon.ico. Just try:

    <link rel="icon" href="/images/favicon.ico?" type="image/x-icon">

    Other browsers works too.

    Remember to restart mozilla, because of it's own cache, that is not connected with css and other caching.

    updated:

    Another way is set redirect from favicon.ico to /images/favicon.ico (301 works)

    0 讨论(0)
  • 2020-12-05 05:21
    <link rel="icon" href="http://khachmeruk.com/favicon.ico" type="image/x-icon">
    <link rel="shortcut icon" href="http://khachmeruk.com/favicon.ico" type="image/x-icon"> 
    
    0 讨论(0)
  • 2020-12-05 05:23

    It works for me in FireFox. When running identify (part of the ImageMagick package), it reports this problem: identify: invalid colormap index 'favicon.ico' @ error/image.c/SyncImage/3906

    Perhaps opening the file in a graphics editor and re-saving it would clean up this error.

    0 讨论(0)
提交回复
热议问题