Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Prevent Safari from permanently retaining site icons Web Browsers
One thing that annoys me about Safari is that it stores internet site's favicons. These files quickly add up to MBs of space. That's bad if you use Apple's Backup software to up backup Safari to your iDisk. But there's a quick-fix. Go to Users -> username -> Library -> Safari.

Go into the Icons folder and delete everything in there. Once you have deleted everything, return to the Safari folder and click on (highlighting) the Icons folder. Get Info and click the triangle next to Ownership & Permissions. Change the Owner to you (your short Unix name) and set the access to "Read only" then set the rest of the access lines to "No access"

Now when you surf the net, you'll find that Safari displays the icons, but when you quit and restart Safari all of those icons are gone. Your iDisk will love you in the morning!
    •    
  • Currently 1.75 / 5
  You rated: 4 / 5 (4 votes cast)
 
[17,412 views]  

Prevent Safari from permanently retaining site icons | 14 comments | Create New Account
Click here to return to the 'Prevent Safari from permanently retaining site icons' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Prevent Safari from permanently retaining site icons
Authored by: lipids on Jul 08, '03 12:43:10PM

Why are you backing up Safari anyway? I could understand backing up the bookmarks, but beyond that I don't really see a reason. Sounds to me like ytou are backing up too much data as it is.



[ Reply to This | # ]
Prevent Safari from permanently retaining site icons
Authored by: neier on Jul 08, '03 06:51:02PM

With the .mac Backup program, backing up Safari bookmarks automatically backs up the icon files. It's quite irritating, but there is a way to disable it. There is a topic on this in the .mac support groups.



[ Reply to This | # ]
Prevent Safari from permanently retaining site icons
Authored by: bongo on Jul 08, '03 01:21:42PM

Well, favicon files are only about 1k in size, usually less. Someone would have to visit thousands of unique websites day after day to accumulate "megabytes" worth of them.



[ Reply to This | # ]
Prevent Safari from permanently retaining site icons
Authored by: nihil on Jul 08, '03 03:22:40PM

Actually, after having tried this, I found the bookmarks and history menu's to be a lot more responsive. Thumbs up from me (and it was indeed only 1.6Mb I had to throw away)



[ Reply to This | # ]
Prevent Safari from permanently retaining site icons
Authored by: gmachen on Jul 08, '03 08:41:16PM

> Actually, after having tried this, I found the bookmarks and
> history menu's to be a lot more responsive.

After I did the permissions changes and relaunched Safari, it indeed stopped the icons, but I still get the same annoying delays getting the Bookmarks menu to come down. (My History menu never suffered delays at any time, unlike the other fellow said.)

Now what? The Bookmarks menu perhaps is the most frequently used menu, yet it's the only one with these interminable delays. Aaarrrgghh! There *has* to be a solution ... H-E-L-P !!!!



[ Reply to This | # ]
Prevent Safari from permanently retaining site icons
Authored by: gmachen on Jul 08, '03 09:19:45PM

Further information about the Safari Bookmarks menu delay:

The delay does not occur every single trip to the Bookmarks menu. E.g., if one goes to the menu and experiences the delay, then dismisses the menu, then immediately returns to the menu, the delay does not occur during the second menu access.

Hope this provides a clue to someone to solve this Safari productivity-killer!

Memo: To repeat, changing the permissions to the icon folder to Read Only did not for me stop the delay involving the Bookmarks menu. Also, the History menu never at any time suffered the delay for me.



[ Reply to This | # ]
Prevent Safari from permanently retaining site icons
Authored by: shurakai on Jul 09, '03 02:29:23PM

dude, favicons are, like *counts* 1....2....3...... less than 1K large! do you really visit 2000+ sites regularly to acquire "MB's" of favicons? I don't think this should be an issue... you can probably just set up an applescript to flush them once in a while if it really matters that much



[ Reply to This | # ]
Prevent Safari from permanently retaining site icons
Authored by: Helios on Mar 29, '04 12:12:48PM

uhm yes i have 5mb and my friend has 8mb of cached icons.

HFS cannot store files smaller than 4k also.



[ Reply to This | # ]
Prevent Safari from permanently retaining site icons
Authored by: xavierbdm on May 14, '04 03:08:22PM

Guess you would not expect this then:
Command I on ~/Library/Safari/Icons:
=>
Kind: Folder
Size: 2,4 MB

(all this with 1k favicon files...)
And my safari has gotten very very slow...

---
iMac G4 17 800/512/80 + powerbook firewire G3 500/512/30



[ Reply to This | # ]
Favicons disapear
Authored by: deleted_user18 on Jul 08, '03 03:17:08PM

Different problem: My favicons disapear after a while, or at least some do. I think this might happen when I sync my bookmarks using .mac.



[ Reply to This | # ]
Another reson to do this
Authored by: viadd on Jul 08, '03 04:21:13PM
% find ~user/Library/Safari/Icons -name \*cache -exec strings '{}' ';' | grep http gives a list of all the porno sites that user has visited that have favicons.

[ Reply to This | # ]
Another reson to do this
Authored by: readparse on Jul 08, '03 04:57:11PM

And that's the very best reason to delete the crap. The disk space usage of that directory, in my case, it negligible. But the list of sites is potentially humbling, since it doesn't seem to clear when you clear your history and cache. Great point.



[ Reply to This | # ]
Prevent Safari from permanently retaining site icons
Authored by: opudeldix on Jul 10, '03 02:06:57AM
This should also work:
Edit ~/Library/Preferences/com.apple.Safari.plist
Look for the following Key:
<key>WebIconDatabaseDirectoryDefaultsKey</key>
Change the corresponding String:
<string>/dev/null</string>

[ Reply to This | # ]
doesn't work in 1.2.1
Authored by: xcgr on Mar 29, '04 02:30:04PM

A neat idea but doesn't work for me under Safari 1.2.1. When I restart Safari, it automatically resets that key value back to the default.



[ Reply to This | # ]