Remove default favicon on localhost

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).

3

3 Answers

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.

1

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: [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.

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.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like