Refresh favicon in bookmarks (Firefox)

2020-05-25 03:27发布

Few days ago, I've changed the favicon of my website: it works well when I open the website:enter image description here


My website is also in my bookmarks, but it shows the old favicon: enter image description here

I already had a look here, but answers did not solved my problem. The solution is probably very simple, but I have not found anything so far.

Thanks!

5条回答
爷的心禁止访问
2楼-- · 2020-05-25 03:51

Windows

Go to C:\Users\ *your profile* \AppData\Roaming\Mozilla\Firefox\Profiles\ *random name*.default-*random #*

Delete file: favicons.sqlite

All bookmark favicons will be set to default and will refresh when your revisit the sites.

Tested on version 66.0.1 (64-bit) & 72.0.2 (64-bit)

查看更多
淡お忘
3楼-- · 2020-05-25 03:52

Press Ctrl + F5. This forces a page refresh while clearing the cache. Also, try deleting the bookmark and recreate it. The image is probably cached in different places for the bookmark and the tab. If that doesn't work, try the favicon addon here I also found this code for refreshing it. Paste it into your dev console:

var fS = Components.classes["@mozilla.org/browser/favicon-service;1"]
         .getService(Components.interfaces.nsIFaviconService);
fS.expireAllFavicons();
查看更多
太酷不给撩
4楼-- · 2020-05-25 03:58

In Firefox 56 on Windows I was able to refresh just a specific bookmark favicon as follows:

  • Install sqlite-tools from https://www.sqlite.org/download.html
  • Quit Firefox (close all open Firefox windows).
  • At the command line, change into your profile directory. Mine was at %AppData%\Mozilla\Firefox\Profiles\<profilename>.default.
  • Open the favicon.sqlite database using sqlite3:

    sqlite3 favicons.sqlite
    
  • Find the favicon(s) you want to remove:

    select * from moz_icons where icon_url like '%search_term_goes_here%';
    
  • Delete them:

    delete from moz_icons where icon_url like '%search_term_goes_here%';
    
  • Exit.

    .exit
    
  • Start Firefox and visit the relevant pages. The favicon will be refreshed when you do this.

查看更多
爷的心禁止访问
5楼-- · 2020-05-25 04:01

There is a solution that works on every browser:

  • go to www.yourwebsiteurl.com/favicon.ico (works for localhost as well)

  • force refresh (Ctrl+F5 for most browsers, or manually)

  • restart the browser

查看更多
放我归山
6楼-- · 2020-05-25 04:07

It's a bit hacky, but try changing the bookmark properties from http to https or vice versa, then clicking the bookmark. If you changed from http to https, just leave it after that. If you changed from https to http, change it back.

查看更多
登录 后发表回答