49

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!

1

8 Answers 8

49

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

4
  • 2
    Non obvious case: I had HTTPS link bookmarked, but for this method to work I had to access HTTP link for favicon.
    – Lanorkin
    Commented Dec 25, 2018 at 10:17
  • 5
    Did not work for me, localhost using Firefox Developer Edition 78.0b5 (64 bits) Commented Jun 11, 2020 at 14:56
  • 3
    Be aware that sometimes the favicon is not stored at /favicon.ico. Check your page for a <link rel="shortcut icon"/> tag and navigate to the url it's pointing to before hard-refreshing. Commented Jun 30, 2020 at 19:12
  • 2
    It seems ridiculous, but this didn't work for me neither. Firefox 89.0.2 64 bit, Windows
    – Maksym
    Commented Jul 5, 2021 at 11:27
30

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
  • This worked for me, thanks. However I had to delete all entries for my domain (e.g. domain.com) to make the favicon refresh for a different context (domain.com/context). Commented Nov 6, 2018 at 11:27
  • This was the only solution that worked for me. I found quitting firefox to be unnecessary. Commented Dec 7, 2018 at 14:46
  • 1
    I did have to quit firefox or a database locked error occurred. For certain bad icons, I had to repeat the same "select" and "delete" commands on the table "moz_pages_w_icons" with column name "page_url" in the same "favicon.sqlite" database. (Firefox 66.0.4)
    – yoyoma2
    Commented May 9, 2019 at 13:45
  • 1
    ~/.mozilla/firefox/****.default-release/favicons.sqlite for Ubuntu Commented Feb 17, 2020 at 16:41
  • You can use the GUI tool sqlitebrowser sqlitebrowser.org and open favicons.sqlite with it, get to the moz_icons table and easily update. Need to close Firefox otherwise it will say database is locked.
    – Wadih M.
    Commented May 21, 2022 at 1:59
18

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.

4
  • Unfortunately this doesn't force a refresh on Firefox v61. Commented Jul 10, 2018 at 16:51
  • Worked for me for a https page after changing it to http, clicking the link, changing it back to https and clicking the link again - FF 61.0.1(64bit)
    – Rik Schaaf
    Commented Jul 25, 2018 at 12:14
  • 1
    Similarily one can just add a question mark to the url (if there is a questionmark already in the url, add an ampersand "&" at the end instead, be sure not to have two questionmarks in the url)
    – JohannesB
    Commented Dec 9, 2018 at 15:59
  • Worked for me in Firefox v75
    – CoRe23
    Commented Apr 30, 2020 at 9:00
5

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
  • In Ubuntu 18.04 (and probably most distros) using Firefox 67.0.3, my file is at /home/<username>/.mozilla/firefox/<random>.default Commented Jun 21, 2019 at 8:16
  • Firefox must be closed in order for the file to be deleted
    – Eliasar
    Commented Jan 29, 2020 at 15:42
  • Can be used together with the Checkmarks extension, which will visit every page to load all favicons. You can find the extension in the sidebar once installed.
    – Sv443
    Commented May 21, 2021 at 20:01
3

I had the same issue and in my case, it worked by adding a slash after the url so the browser loads the page from ground up again.

https://www.example.com//

After clicking on the bookmark, the icon was updated immediately. The solution is from here (See method 2)

2
  • That worked for me. And it is the easiest to remember :) Thanks
    – Vladan
    Commented Jan 23, 2023 at 12:29
  • By far the simplest solution. Nothing else worked for me.
    – istrasci
    Commented May 16 at 17:04
2

MAC OS

The favicon.ico format is pretty archaic now. Any solution to hack/trash/refesh a .ico file is rather pointless when the file may be a PNG. The head element of a page should tell you e.g. for a Drupal page <link rel="icon" href="/sites/default/files/YOUR-ICON.png" type="image/png" />

These Bookmark/History image files are so stubbornly cached, that on MacOS the best solution for me (because I'm comfortable with refreshing ALL icons again over time) is to quit Firefox, then trash the favicons.sqlite file found at

~USERHOMEFOLDER/Library/Application Support/Firefox/Profiles/XXXXXXXX.default/favicons.sqlite

The file will be regenerated when you reopen FF. Tabula rasa.

1

It might not work for everybody, but you should check the link you saved to see if it's the same URL as the one you end up on after clicking on it, because Firefox won't save icons for links that instantly redirect you. For instance, I saved Bootstrap's docs in my favorite bar with this link
https://getbootstrap.com/docs/5.2/
But when you click on in you get redirected to this link.
https://getbootstrap.com/docs/5.2/getting-started/introduction/
After changing the link in my bookmark to the second one it worked.

It's a bit of a rare situation and it might not help most people but I still believe I should post this.

-3

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();
1
  • I've tried both before asking my question, it does not refresh my bookmark's favicon... :( Thanks anyway!
    – Mistalis
    Commented Jun 16, 2016 at 13:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.