User Agents

Clearing Cache in Safari: What It Does and How

To clear the cache in Safari, open Safari settings, go to the Privacy or Advanced section, and choose Clear History and Website Data (on iOS) or Empty Caches from the Develop menu (on Mac). This removes locally stored copies of website files and browsing records, which can fix loading problems and free up space, but it also signs you out of some sites and slows the first visit to pages you use often.

What Safari's Cache Actually Is

Every time you open a website, Safari downloads images, scripts, stylesheets, fonts, and other files needed to display the page. It keeps a copy of many of these files on your device so that the next visit loads faster. That stored copy is the cache. Safari also stores cookies, local storage, and a browsing history, which are related but separate from the cache itself.

The cache is not the same as your bookmarks, saved passwords, or Reading List. Clearing the cache does not delete those, but some clearing options bundle history and website data together, so it helps to know exactly which control you are using before you tap it.

Why You Might Clear It

Cache clearing is usually a troubleshooting step rather than routine maintenance. Common reasons include:

  • A website shows an old version of a page even after the site has been updated.
  • Images or layout elements fail to load, or a page looks broken.
  • A web app behaves oddly, such as a login loop or a form that will not submit.
  • You want to free up storage space on an iPhone or iPad.
  • You are using a shared or public device and want to remove traces of your browsing.

In many of these cases, simply reloading the page or opening a private browsing window will tell you whether the cache is the culprit. If the site works in a private window but not in a normal one, cached data is a likely cause.

How to Clear Cache in Safari on iPhone and iPad

On iOS and iPadOS, Safari does not offer a standalone "clear cache" button. Instead, you clear history and website data, which includes the cache, cookies, and local storage. The exact labels can differ slightly between versions of iOS and iPadOS.

  1. Open the Settings app on your device.
  2. Scroll down and tap Safari.
  3. Scroll to the bottom and tap Clear History and Website Data.
  4. Confirm by tapping Clear History and Data.

This action removes your browsing history, cookies, and cached files from Safari on that device. It does not remove bookmarks, saved passwords in iCloud Keychain, or Reading List items. If you only want to remove cookies and local data for a single site, you can use the Advanced section within Safari settings to review website data, though the exact menu path varies by version.

If you want to keep your history but still clear cached files, there is no direct built-in option on iOS. A workaround is to close all Safari tabs, force-quit Safari, and restart the device, which can prompt Safari to discard some temporary files, but it is not a guaranteed cache clear.

How to Clear Cache in Safari on Mac

On a Mac, Safari has a dedicated cache-clearing command, but it is hidden unless the Develop menu is enabled.

  1. Open Safari.
  2. In the menu bar, choose Safari > Settings (or Preferences in older versions).
  3. Click the Advanced tab.
  4. Select the checkbox labeled "Show features for web developers" or "Show Develop menu in menu bar." The label depends on the Safari version.
  5. Close Settings. A Develop menu now appears in the menu bar.
  6. Choose Develop > Empty Caches.

This empties the cache without deleting your history or cookies. To clear history and website data on a Mac, choose Safari > Clear History from the menu bar and select the time range you want to remove. That option removes history, cookies, and other website data but does not necessarily empty the cache in the same step, so the two commands serve different purposes.

If you prefer not to enable the Develop menu, you can remove website data through Safari > Settings > Privacy > Manage Website Data. That panel lets you remove stored data for individual sites or all sites, but it focuses on cookies and local storage rather than the raw file cache.

What Clearing the Cache Does and Does Not Remove

Understanding the scope helps you avoid surprises. The following table-like list summarizes typical effects, though behavior can vary by Safari version and device.

  • Removed: cached images, scripts, and stylesheets; browsing history (if you use Clear History); cookies and local storage (if included in the clearing option); some site-specific permissions and session data.
  • Kept: bookmarks, Reading List, saved passwords stored in iCloud Keychain, autofill information, open tabs in some cases, and downloads.

Because cookies are often cleared along with the cache on iOS, you may be signed out of websites and need to log in again. Sites that rely on local storage for preferences, such as dark mode settings or shopping carts, may also reset. On Mac, using Develop > Empty Caches is more surgical and leaves cookies and history intact.

Common Problems and Fixes

If clearing the cache does not solve the issue, or if something goes wrong, consider these common scenarios:

  • The site still shows old content. The server or a content delivery network may be serving a cached copy, not your device. Try a private window or another network to confirm.
  • You were signed out everywhere. Clearing cookies signs you out. Sign back in and consider using a password manager to make this easier.
  • Storage did not free up much. Cached files are often small compared with photos, apps, and messages. Check your device storage settings to see what is actually using space.
  • The Develop menu is missing. It must be enabled in Safari settings first; it is not shown by default.
  • Clearing history removed autocomplete suggestions. History-based suggestions will rebuild as you browse, but they will not return immediately.

A common misconception is that clearing the cache improves security or privacy in a lasting way. It removes local copies of files and some tracking data, but it does not block future tracking, prevent cookies from being set again, or substitute for private browsing when you need it.

Cache, Cookies, and History: How They Differ

These three are often lumped together, but they serve different purposes. The cache stores files to speed up loading. Cookies store small pieces of data such as login sessions and site preferences. History records the pages you visited. Safari's clearing controls sometimes combine them, especially on iOS, while macOS separates them more clearly. If your goal is to stay signed in but fix a broken page, prefer a cache-only clear where available. If your goal is to remove traces of activity, clear history and website data together.

Frequently Asked Questions

Does clearing the cache delete my bookmarks?

No. Bookmarks, Reading List items, and saved passwords are stored separately from the cache and are not removed by clearing cache or history in Safari.

Will clearing the cache speed up my iPhone?

It can free a small amount of storage and resolve loading glitches, but it is unlikely to make the device noticeably faster overall. The first visit to each site afterward may be slower because files must be downloaded again.

Why is there no clear cache button on my iPhone?

Safari on iOS does not expose a standalone cache control. The closest built-in option is Clear History and Website Data in Settings, which also removes cookies and history.

Can I clear the cache for just one website?

On a Mac, you can remove data for individual sites through Safari settings under Privacy and Manage Website Data. On iOS, the built-in controls are broader, and per-site removal is limited to the website data list in Safari's advanced settings where available.

Does clearing the cache log me out of websites?

If the clearing option includes cookies, yes, you may be signed out of sites that rely on cookies for sessions. On a Mac, using Develop > Empty Caches alone typically leaves you signed in.

Is it safe to clear the cache regularly?

It is safe, but usually unnecessary. Clearing it occasionally for troubleshooting is fine. Frequent clearing means Safari must re-download files, which can use more data and slow the first load of pages you visit often.