Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Is there a reason why a favicon.ico is not showing in Safari 5.1 on Mac? It shows on every other browser I have tested except the above mentioned one. In Safari on Windows it shows.

I've declared it like this:
<link rel="shortcut icon" href="http://www.mysite.com/favicon.ico" />

share|improve this question
    
Have you fixed it already? The favicon loads fine for me. –  DisgruntledGoat Aug 11 '11 at 10:20
add comment

1 Answer

up vote 4 down vote accepted

Assuming that Safari on Mac is showing favicons for other websites (try any stackexchange website), you probably need to clear the browser cache.

Also, try adding a random number (using JS or Server-script like PHP) to your favicon reference, like below:

EDIT- Also, add type attribute and try again? (see below)

<!-- FAVICON -->
        <link 
        rel = "shortcut icon" 
        type = "image/x-icon" 
        href = "http://www.dixitsolutions.com/favicon.ico?23189123" />
share|improve this answer
    
Clearing the cache was the first thing I did. It still doesn't work. –  Alex Aug 11 '11 at 7:07
    
Try adding the type attribute, check the edited answer. –  Ramnique Singh Aug 11 '11 at 8:37
    
Done and it works. Thanks! –  Alex Aug 11 '11 at 13:09
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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