How to Clear Cache and Cookies for a Single Website in Safari on Mac

When an online banking portal refuses to load properly, an e-commerce checkout page displays broken styling, or a web application gets stuck in an infinite redirect loop, clearing your browser cache and cookies is standard troubleshooting advice. However, clicking the standard “Clear History…” button in Safari is intensely disruptive: it wipes out your entire browsing history across all synced Apple devices and signs you out of every website you visit, including email, social media, and work portals.

Fortunately, Safari on macOS includes a dedicated Manage Website Data control panel that lets you search for, inspect, and delete stored cookies, local storage, and cache files for a single specific domain. In this guide, you will learn how to remove cached files for an individual website in Safari without disturbing the rest of your browsing session.

Why Clear Cache for Just One Website?

Selective cookie and cache removal delivers targeted troubleshooting without collateral annoyance:

  • Preserves active logins: Stay logged in to your essential work accounts, Google Workspace, and password-protected portals while resetting only the problematic site.
  • Resolves stale asset glitches: Forces Safari to re-download updated CSS stylesheets, JavaScript bundles, and authentication tokens for the specific page.
  • Protects iCloud Tabs and History: Ensures your synced browsing history remains intact across your iPhone, iPad, and other Mac computers.

Step-by-Step: Delete Data for a Specific Website in Safari

Follow these steps in the desktop version of Safari on Mac:

  1. Launch Safari on your Mac.
  2. Click on Safari in the top menu bar (beside the Apple logo) and select Settings… (or press Cmd + ,).
  3. In the Settings window, click on the Privacy tab represented by a padlock icon.
  4. Under the Cookies and website data section, click the Manage Website Data… button.
  5. A dialogue box will appear listing all domains that have saved cookies, database storage, or cache files on your Mac.
  6. In the Search box in the upper-right corner of the window, type the domain name of the problematic site (for example, type github.com or amazon.co.uk).
  7. Click to highlight the matching website in the search results list.
  8. Click the Remove button at the bottom of the window.
  9. Click Done, then close the Settings window.

Return to the website and reload the page by pressing Cmd + R. Safari will download fresh server assets and present a pristine login session.

Alternative: Clear Cache via Safari Developer Tools

For web developers who want to bypass cache instantly while testing a site:

  1. Enable the Develop menu via Safari Settings > Advanced > tick Show features for web developers.
  2. Navigate to the active website tab.
  3. Press the shortcut Option + Cmd + E to empty caches immediately.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.