How to clear cache in Safari

Web browsers store all kinds of data on your Mac as you surf the web, and Safari is no different. Many of these files are designed to make the experience of surfing the web smoother and faster by storing pages you visit frequently. These files are known as cache, and while they can be very convenient, as they build in size, they can cause problems for browsers. In this article, we’ll explain how to clear cache in Safari. As a bonus, we’ll show how to clear cookies on Safari and get rid of other private data.

What is browser cache?

Cache in a web browser is the storage of the contents of web pages you visit often. This includes text, layout information, and images and is designed to make web pages load quicker. When you visit a website that has been cached, much of the page is loaded from cache rather than downloaded from the web server, with only elements that have changed since the cache was created downloaded. However, sometimes, it doesn’t work out like that, and even the elements that have updated are loaded from cache, meaning you don’t see an up-to-date version of the page. Also, cache files can grow very large, taking up space on your Mac and slowing down the web browser. If you find that web pages aren’t loading properly or are not displaying the most recent information, clearing the cache is a good solution. It will fix the problem with minimal inconvenience.

How to clear cache in Safari

There are a couple of different ways to clear cache in Safari. One clears all website data, including cache and cookies. The other clears only cache. We’ll show you both.

Website data

  1. Open Safari and click the Safari menu, then Settings.
  2. Choose the Privacy tab.
  3. Click Manage Website Data.
  4. Wait for the data to load, then click Remove All to get rid of all website data, or select the sites whose data you want to remove and click Remove.

Cache

The option to only clear cache is tucked away in the Develop menu, which is hidden by default. So, first of all, we need to make that visible.

  1. Go to Safari > Settings.
  2. Choose Advanced.
  3. Select the box next to ‘Show features for Developers’ and quit Settings.
  4. Click the Develop menu and choose Empty Caches.
  5. You can also use the keyboard shortcut Command-Option-E to empty caches.

How to clear Safari cache, cookies, and browsing history easily


If you want to clear cookies and browsing history quickly, there is an easier way than doing it in Safari. And it also allows you to do the same for Chrome and Firefox — all from the same window with just a couple more clicks. CleanMyMac X’s Privacy module does that easily as well as manages application permissions, clears your Recent Items list, and deletes the list of saved Wi-Fi networks your Mac stores and syncs with iCloud. And CleanMyMac X’s System Junk module will clear Safari cache as well as cache files from other browsers on your Mac. It will also clear temporary files, leftover files from applications no longer on your Mac, and language files for languages you don’t need. In total, it can free up several gigabytes of disk space. Best of all, you can download CleanMyMac X for free here.

How to clear cookies in Safari

To get rid of cookies in Safari, you use the Manage Website Data option in Safari > Settings > Privacy. Here, you can remove all the cookies Safari has stored on your Mac, or you can choose the websites whose cookies you want to remove. You can also prevent Safari from storing cookies in the future. Follow the steps below to do that:

  1. Click the Safari menu and choose Settings.
  2. Select Advanced.
  3. Select the box labeled ‘Block all cookies’ and confirm the action.
  4. Quit Settings.

How to clear history in Safari

To manually clear all history in Safari, do the following.

  1. Click the History menu.
  2. Choose Clear History.

To clear individual sites from Safari history, do the following.

  1. Click the History menu and choose Show All History.
  2. Locate the site you want to delete either by scrolling through the list or using the search box.
  3. When you find the site you want to delete from history, right-click or Control-click on it and choose Delete.

How to delete data from AutoFill in Safari

AutoFill can be a very useful feature, whether you use it to fill in name and address data on a form or to fill in credit card details on an online store. However, it can also be a risk to your privacy, especially if you share your Mac with someone else. You can prevent Safari from using any AutoFill data, or you can choose which data to prevent it from using. You can also remove usernames, passwords, and credit card details completely. Here’s how to do all of that.

Stop using AutoFill data

  1. Click on the Safari menu and choose Settings.
  2. Select AutoFill.
  3. Deselect the boxes next to the AutoFill data you want Safari to stop using.

Delete stored usernames, passwords, and financial data

  1. In Safari > Settings > AutoFill, click Edit next to the data you want to delete.
  2. Click Edit next to usernames and passwords.
  3. Type in your password or use Touch ID to verify.
  4. Right-click or control-click on the website whose username and password data you want to delete.
  5. Choose Delete.
  6. To remove credit or debit card details, click Edit next to Credit cards.
  7. Select the card whose details you want to delete, and click the ‘-’ button at the bottom of the window.

If Safari is not loading pages correctly or is having other problems, one solution is to clear its cache of stored website content. That will force it to load everything from the source page the next time you visit. Follow the steps above to clear cache in Safari.