Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have favicon on my website on the root.
I add this code to master page.
HTML
<link rel="SHORTCUTxx ICON" href="favicon.ico" type="image/x-icon" />
<link href="favicon.ico" rel="ICON" type="image/x-icon" />
<link href="favicon.ico" rel="BOOKMARK ICON" type="image/x-icon" />

I change the favicon file, but it still shows the old icon. What is the problem?
Posted
Updated 31-Aug-11 20:40pm
v4

The old icon is still in the icon-cache. Try creating a desktop shortcut or add the page as a favorite. This forces Internet Explorer to download the favicon and store it. Also, try Ctrl+F5 to "reload" the page. A "reload" forces a complete download of all page items.
 
Share this answer
 
Comments
[no name] 1-Sep-11 3:15am    
i try but it doesn't work
the code that call favoicon in the master page
Andy Missico 1-Sep-11 3:40am    
Use Fiddler to see if there is an error retrieving the icon.
[no name] 1-Sep-11 5:05am    
iam working now on local host i didn't upload site yet
Andy Missico 1-Sep-11 3:45am    
For troubleshooting, change the icon is 16 pixels wide, 16 pixels high, and 16 colors. In addition, you can try editing your old icon to include a red circle and see if this edited icon displays.
[no name] 1-Sep-11 5:05am    
iam working now on local host i didn't upload site yet
Clear The Cach & Reopen The Site AGain
 
Share this answer
 
I have already given you the answer over here http://www.codeproject.com/Messages/4011255/Change-favicon-doesnt-work.aspx[^].
In which section are you placing the above code ?
Where is the location of your image ?

Put the link tag inside the Head Tag
<link rel="SHORTCUTxx ICON" href="http://site/favicon.ico" type="image/x-icon" />
 <link href="http://site/favicon.ico" rel="ICON" type="image/x-icon" />
 <link href="http://site/favicon.ico" rel="BOOKMARK ICON" type="image/x-icon" />

And make sure, icon size is 16*16.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900