Remove default favicon on localhost

7

I developed a website with a favicon and now every time I access localhost (for my other projects), I get that same favicon showing up. I'm on OSX, using Chrome. I tried clearing the cache; it flashed to the default unknown favicon first, then immediately grabbed the website one (that I don't want). Anyone know where to find that favicon so I can remove it? None of my other browsers have this problem (Firefox, Safari).

jfedick

Posted 2011-11-04T16:24:09.957

Reputation: 221

Are you using an actual release version of Chrome or some buggy testing alpha/beta/canary build? – Daniel Beck – 2011-11-04T16:33:46.760

Cannot reproduce. Visited http://localhost after setting up /favicon.ico on the site, it was displayed. Deleted favicon file, cleared cache and restarted Chrome: It's gone. – Daniel Beck – 2011-11-04T16:36:23.967

1I am using an actual release of Chrome. Also- I deleted the entire project directory where that favicon is stored, cleared my cache in Chrome and restarted the browser and it still is showing up on localhost. Any other advice? – jfedick – 2011-11-04T17:32:36.673

Answers

5

To fix this, I went into Preferences, Under the Hood, Clear Browsing Data, and selected all the options with "from the beginning of time" as the date reference. I was hoping to not have to do this and lose all my browsing history/data, but it worked.

jfedick

Posted 2011-11-04T16:24:09.957

Reputation: 221

For me it was specifically the "Browsing history" option that did it. – meetar – 2017-05-23T15:35:46.230

2

For Mac, delete: ${user.home}/Library/Application Support/Google/Chrome/Default/Favicons

For Windows: go to %LocalAppData%\Google\Chrome\User Data\Default and delete favicons and favicons-journal files

Source: http://www.nullalo.com/en/how-to-delete-google-chrome-favicon-cache/ [see #3 in the link]

I find this to be the least intrusive method since it does not delete your browser history or anything else as suggested in the other solutions.

John Lee

Posted 2011-11-04T16:24:09.957

Reputation: 121

1

You can of course always make an empty PNG file and set it as the favicon in an index.html page so the cache is overwritten:

<html><head><link rel='icon' type='image/png' href='favicon.png' /></head></html>

The default icon is still not there :( but it's a way to avoid deleting all your history.

Ben

Posted 2011-11-04T16:24:09.957

Reputation: 1 230

If you're a stickler meeseeks you can set it to a lookalike of the default: http://static.dealer.com/v8/global/images/site-favicon-default.ico

– Samy Bencherif – 2017-07-31T08:46:31.267