How do I clear cache in Safari now?

found the answer.


Message was edited by: Lisa Hodgen

MacBook Pro (13-inch, Mid 2012), OS X Mountain Lion (10.8.2)

Posted on Oct 19, 2012 1:52 PM

Reply
71 replies

Oct 20, 2017 1:30 PM in response to Lisa Hodgen

Hi, if you need to clear Safari caches only, then go Preferences ->‘Advanced’ tab then check ‘Show Develop Menu’ then you would be able to see a new 'Develop' menu at the top, click here and select the ‘Empty Caches’ option.
User uploaded file
That's it! If you want to know more ways of how to clear cache files or history in Safari or, please try this great post https://macappgeeks.com/clear-safari-cache-file-on-mac

Apr 15, 2017 8:27 AM in response to Pedro Santos

The 'Official' Apple method is to: Close down ALL applications except Finder then, at the top Tool Bar on the left where you'll see 'Go' as here:-

User uploaded file

While holding down the Alt key click on the Go option and you'll see this:-

User uploaded file

Send the Safari one (I send them all) to the Trash, don't empty the Trash yet. Re-start your computer. Then empty the trash.

Nov 7, 2017 1:55 AM in response to Kruaton

I'm on OS 10.13.1, High Sierra, and Safari 11.0.1.

Testing locally, with 'Disable Local File Restrictions'.

The link provided in the previous post gives nothing new.

Wasting hours trying to clear the cache while testing css/javascript combinations.


There's no 'Disable Cache' option in the developer menu--nor in previous OS, Sierra.


Even if I use the option-Go menu, and delete from the library "com.apple.Safari"--still, I need to quit the browser and re-load twice before the new code is displayed.


Help!

Jan 14, 2013 3:01 PM in response to freediverx01

Clearing your Safari browser cache using the "Develop > Empty Caches" selection in the menu does not work. This is a major bug within Safari - Version 6.0.2


To clear your browser cache you must manually remove the Cache.db from your user files.


Follow these steps to clear your browser cache manually:

  1. Open "Finder"
  2. In the menu at the top of your screen select "Go"
  3. While the "Go" menu is dropped down press and hold the "option" key on your keyboard. This will reveal the selection "Library"
  4. Select "Library"
  5. Navigate into the folder "Caches"
  6. Next navigate into the folder "com.apple.Safari"
  7. In this folder you will see a file named "Cache.db"
  8. Right click the "Cache.db" file and select "Move to Trash"
  9. Now restart Safari by right clicking the Safari icon at the bottom of your screen and select "Quit"
  10. You have now successfully cleared your browser cache.
  11. Open Safari and happy browsing :-)


Note: Clearing your browser cache will not remove any saved password, logins or session data. It will just remove the files and images that were cached while browsing within Safari.

Dec 28, 2012 5:26 AM in response to Pedro Santos

I tested this and confirmed that Safari's cache.db file is neither removed nor emptied when the user uses the "reset Safari" function, nor when they select the "empty caches" function in the Develop menu which is hidden by default. Additionally, I opened Safari's Preferences panel, selected the Privacy tab and clicked on the "Remove All Website Data" button. Again, this had no effect on the cache.db file.


The Safari cache.db file is in SQLite format. If you don't have an appplication that can read SQLite files, you can still open it up in TextEdit and confirm that it in fact contains traces of the URLs you have visited.


I performed the same test with Firefox and Chrome and in both those cases, their respective cache.db files were deleted when I used those browsers' "clean history" functions.


At this point I have no idea what steps are truly necessary to remove all Safari web browsing history. If this file remains even after selecting all those Safari privacy functions, god knows where else Safari is storing browsing data without providing users a way to delete of delete it.

Dec 28, 2012 5:39 AM in response to Pedro Santos

I have the same version.


I was also concerned about breaking something if I deleted the file. So to test, I first copied the file to my desktop (just in case) and then deleted it from the com.apple.Safari folder. Restarted Safari and it simply re-created the file on its own (with previous browsing data gone of course.)


I believe the purpose of cache files is to save recent data locally in order to imporove an application's performance. I sense that it is generally harmless to remove these files manually though I don't have ny reference to back that up.


The main thing you lose is the same as when using their privacy functions: you might lose passswords and preferences for your differrent websites. But of course, you should already know this.

Jan 3, 2013 11:34 AM in response to Vritika

Vritika --


Quit Safari.


Click out on your desktop somewhere to get Finder menu on the top menu bar. Then look over to the right, and select the "Go" menu while holding down the "Option"button. You will then see an option for "Library" right under your home folder on that list.


That is your hidden Users Library. Open that Library, go down to Caches. Open that, and then look for apple.com.Safari. Take that file to the trash.


Restart Safari.

May 17, 2013 9:17 PM in response to Carolyn Samit

Carolyn Samit wrote:


No problem 🙂 Appreciate the points!


@ Carolyn - NO -- do not delete a post. You might think you are only asking for yourself - but this is now May 18th (7 months later) and I came looking for the same answers (just upgraded hardware) and came from 10.6.8 (Snow Leopard).


Lots of stuff between the 2 systems are similar and Mac-like - but there are enough differences that I'm having to trouble shoot above and beyond my normal "new system" tweaks.


So you never know when and for whom a Question will help someone else out.


Thank you for posing the question and thanks to all for pointing out the change.


As usual the UI Devs at Apple (among other software companies) like to mess with us.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How do I clear cache in Safari now?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.