User Agents

Web browsers and everyday web tech, explained

Clear Safari Cache: Step-by-Step Guide for Mac and iOS

· 7 min read · Cookies and Cache

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Clearing your Safari cache removes temporary files, images, and scripts that the browser stores locally to speed up page loading. While caching is generally helpful, an outdated or corrupted cache can lead to website display errors, slow performance, or the failure of new updates to appear on a webpage. By purging these files, you force Safari to download the most recent version of a site directly from the server, which often resolves loading glitches and frees up storage space on your device.

What You'll Need

  • An Apple device (Mac, iPhone, or iPad) running the Safari browser.
  • Administrative access to the device to change system settings.
  • A list of any critical passwords you haven't saved in a password manager, as clearing certain history settings may sign you out of some websites.

Step-by-Step

Method 1: Clearing All History and Cache on Mac

  1. Launch the Safari browser on your macOS device.
  2. Locate the menu bar at the top of your screen. Click on the "Safari" menu.
  3. Select "Clear History..." from the dropdown list.
  4. A pop-up window will appear asking for the time frame. Click the dropdown menu to choose between the last hour, today, today and yesterday, or "all history".
  5. Select "all history" to ensure a comprehensive purge of the cache and cookies.
  6. Click the "Clear History" button to confirm. Safari will now remove your browsing history, cookies, and cached files across all your synced devices.

Method 2: Clearing Only the Cache on Mac (Developer Method)

  1. Open Safari. In the top menu bar, click on "Safari" and then select "Settings" (or "Preferences" in older macOS versions).
  2. Click on the "Advanced" tab located on the far right of the settings window.
  3. At the bottom of the window, check the box next to "Show features for web developers" (or "Show Develop menu in menu bar").
  4. Close the Settings window. You will now see a new "Develop" menu in the top menu bar.
  5. Click the "Develop" menu and select "Empty Caches" from the list.
  6. Note that this method clears the cache without deleting your browsing history or cookies, allowing you to stay logged into your accounts.

Method 3: Clearing Cache on iPhone and iPad

  1. Exit the Safari app and open the main "Settings" app on your iOS device.
  2. Scroll down through the list of applications until you find "Safari" and tap it.
  3. Scroll further down the Safari settings page until you see the option "Clear History and Website Data".
  4. Tap "Clear History and Website Data".
  5. A confirmation prompt will appear. You can choose the time frame (e.g., Last Hour, Today, All History) and decide if you want to close all open tabs simultaneously.
  6. Tap "Clear History" to finalize the process.

Method 4: Clearing Specific Website Data on iOS

  1. Open the "Settings" app and navigate to "Safari".
  2. Scroll to the very bottom of the menu and tap "Advanced".
  3. Tap "Website Data". This will load a list of every site that has stored data on your device.
  4. To remove data for one specific site, swipe left on the site name and tap "Delete".
  5. To remove all site data without clearing your entire browsing history, tap "Remove All Website Data" at the bottom of the screen.

Common Mistakes

One of the most frequent errors users make is confusing "Clear History" with "Empty Caches." On macOS, using the standard Clear History tool removes everything—your visited URLs, your cookies, and your cached images. If your goal was simply to fix a rendering issue on a website while remaining logged into your email or social media accounts, using this method is a mistake because it wipes your session cookies, forcing you to log back into every single site. To avoid this, use the Develop menu method described above.

Another common mistake is forgetting that Safari syncs across iCloud. If you have "Safari" enabled in your iCloud settings, clearing the history on your Mac will also wipe the history on your iPhone and iPad. Users often do this on one device and are surprised to find their bookmarks or history gone from another. If you only want to clear the local cache of a single device without affecting your entire ecosystem, you must use the Developer tools on Mac or the "Website Data" specific menu on iOS.

Finally, some users attempt to clear the cache while the browser is actively running a heavy process, such as a large file download or a complex web application update. Interrupting these processes by clearing the cache can lead to corrupted downloads or session errors. It is always best to close active downloads before performing a cache purge.

Tips

To maintain a fast browsing experience without having to manually clear your cache every week, consider using "Private Browsing" mode for sites you know you will only visit once. Private Browsing does not store history, cookies, or cache after the session is closed, which keeps your main browser profile lean and fast.

If you are a web developer or someone who frequently updates a personal website, the "Empty Caches" shortcut in the Develop menu is your best friend. You can also use a "Hard Refresh" by holding the Shift key and clicking the Reload button in the address bar; this tells Safari to ignore the cached version of that specific page and fetch the latest version from the server immediately.

For those concerned about storage space on an iPhone or iPad, check the "Website Data" section in Advanced settings once a month. Some sites store an unexpected amount of data (hundreds of megabytes) that can slow down the device. Manually removing data from these specific high-usage sites is more efficient than a blanket clear of all history.

Troubleshooting

If you have cleared your cache but the website still looks outdated or continues to glitch, the issue may be "Server-Side Caching." This means the website's own server is holding onto an old version of the page, and no matter what you do on your local device, you will see the old version until the site owner clears their server cache. In this case, waiting a few hours or contacting the site administrator is the only solution.

If the "Develop" menu does not appear on your Mac after checking the box in Advanced settings, try restarting Safari completely. Quit the app (Cmd+Q) and relaunch it. If it still doesn't appear, ensure you are not using a restricted user account or a managed company laptop that has disabled developer tools via a profile.

On iOS, if "Clear History and Website Data" is greyed out or unresponsive, check your "Screen Time" settings. If you have content and privacy restrictions enabled (Settings > Screen Time > Content & Privacy Restrictions), Safari may be locked to prevent the deletion of browsing data. You will need to disable these restrictions or enter the Screen Time passcode to regain control over your browser data.

Occasionally, after clearing the cache, you might find that some websites fail to load entirely. This is usually because a necessary cookie was deleted along with the cache. The fix is simple: restart the browser and navigate to the site again. If the problem persists, check your internet connection or try opening the site in a Private window to see if a conflicting extension is causing the issue.

Frequently Asked Questions

Will clearing my cache delete my passwords?

No, clearing the cache and browsing history does not delete passwords saved in Safari's AutoFill or iCloud Keychain. However, it will sign you out of most websites because the session cookies are removed.

How often should I clear my Safari cache?

There is no set schedule. You should do it when you notice websites loading incorrectly, when the browser feels sluggish, or when you need to free up disk space. For most users, once every few months is sufficient.

Does clearing cache make the internet slower?

Initially, yes. Because the browser no longer has local copies of images and scripts, it must download everything from scratch the first time you visit a page. However, once the new cache is built, speeds return to normal.

What is the difference between cookies and cache?

Cache stores website assets (like images and CSS) to make pages load faster. Cookies store your personal data, such as login sessions, site preferences, and tracking information to remember who you are.

Can I clear the cache without losing my open tabs?

On Mac, using the "Empty Caches" option in the Develop menu preserves your open tabs. On iOS, when you select "Clear History and Website Data," you can choose whether or not to close all tabs in the confirmation prompt.