8

Safari 9 on OSX supports showing icons on its new pinned tabs, using the following syntax:

<link rel="mask-icon" color="red" href="/mask-icon.svg">

However after adding this line, reloading my page, and pinning the tab, the icon doesn't show up.

How do I tell it to refresh the icon?

migrated from webmasters.stackexchange.com Sep 18 '15 at 16:54

This question came from our site for pro webmasters.

10

Safari is very keen to cache these icons, and indeed the lack of them. Once it has decided there is (or is not) an icon on your site, it will retain that knowledge, potentially for a very long time, and no amount of restarting or refreshing will change that.

You can encourage it to re-check for icons by deleting the contents of the following folder:

~/Library/Safari/Template Icons

And then restarting Safari.

  • 1
    That directory doesn't exist for me? – Jonathon Hill Nov 25 '15 at 17:28
  • This directory won't be created until a pinned site has downloaded a pinned icon. Try Apple's website to kickstart it. – mix3d Mar 21 '17 at 1:46
1

Unpin any pins you want to reload then restart safari. Click on the 'go' menu in the finder toolbar and hold down the option key, this reveals the hidden Library directory.

Navigate to the safari directory in the library folder and delete the template icons folder.

This resets the cache safari keeps for icons.

Start Safari and pin away!

0

Open Safari, click "Safari", "Clear History...", then click the button "Clear History".

Screenshot

That worked for me.

0
  1. Open Safari > Develop > Empty Caches.
  2. Refresh the page

Note: If you don’t see the Develop menu in the menu bar, choose Safari > Preferences, click Advanced, then select “Show Develop menu in menu bar.”

That did the trick for me ;)

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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