User Agents

Web browsers and everyday web tech, explained

How to Access the Cache in Safari

· 5 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

Accessing Safari's cache lets you view or clear the temporary files (images, scripts, and other web assets) that Safari stores to speed up page loading. This can help you troubleshoot display issues, free up storage, or see exactly what data a website has saved on your Mac or iOS device. You don't need any special tools—just the built-in Safari menus and settings.

What You'll Need

  • A Mac running macOS with Safari (for the Developer menu method) or an iPhone/iPad with iOS/iPadOS.
  • For the Mac, you may need to enable the Develop menu (it's hidden by default).
  • For iOS, you'll use the Settings app—no extra setup needed.

Step-by-Step

On Mac (View Cache via Develop Menu)

  1. Enable the Develop menu: Open Safari, then go to Safari > Settings (or Preferences in older versions). Click the Advanced tab, then check the box next to “Show features for web developers.” Close the settings window.
  2. Open the Develop menu: You'll now see a Develop menu in the menu bar at the top of your screen (between Bookmarks and Window).
  3. Access the cache: In the Develop menu, hover over “Show Page Resources” (or simply click it). This opens the Web Inspector panel. Click the “Storage” tab (or the “Resources” tab in some versions) to see a list of files cached for the current page. You can expand folders like “Images” or “Scripts” to view individual cache entries.
  4. View cache details: Click any file to see its URL, size, and response headers in the right-hand pane. This shows exactly what Safari has stored for that site.

On Mac (Clear Cache)

  1. Use the Develop menu: With the Develop menu enabled (as above), click Develop and select “Empty Caches.” This clears the cache immediately. (Keyboard shortcut: Option+Command+E.)
  2. Alternative method (for older macOS): Go to Safari > Settings > Advanced, check “Show Develop menu,” then use the same Empty Caches option. If you don't see it, you may need to quit and reopen Safari.

On iPhone or iPad (Clear Cache Only)

  1. Open Settings: Tap the Settings app on your home screen.
  2. Find Safari: Scroll down and tap Safari.
  3. Clear history and website data: Tap “Clear History and Website Data.” This removes cache, cookies, and browsing history. If you want to keep history but clear cache, you can't do that directly on iOS—you'd need to use a third-party tool or clear all data. (Note: This also logs you out of most websites.)

On iPhone or iPad (View Cache – Limited)

  1. Use Safari's built-in inspector: Connect your iPhone to a Mac, open Safari on the Mac, then go to Develop > Your iPhone Name and select the page you want to inspect. This shows the same Web Inspector as on Mac, including cached resources.
  2. No direct viewing on iOS: There is no user-facing way to browse the cache directly on the iPhone/iPad itself. The only way is via the Mac's Web Inspector.

Common Mistakes

  • Forgetting to enable the Develop menu: If you don't see “Develop” in the menu bar, you haven't checked the box in Advanced settings.
  • Confusing “Empty Caches” with “Clear History”: Empty Caches only clears temporary files; Clear History also removes your browsing history and cookies.
  • Expecting to view cache on iOS: iOS doesn't have a direct cache viewer—you must use a Mac with Web Inspector.
  • Clearing cache while a page is open: If you clear the cache while a page is still open, the page may not reload properly until you refresh it.

Tips

  • Use the keyboard shortcut: On Mac, Option+Command+E empties the cache instantly without navigating menus.
  • Clear cache for a single site: In Safari on Mac, go to Settings > Privacy > Manage Website Data, search for the site, and remove just that site's data (including cache).
  • Use private browsing for no cache: When you use a Private Window, Safari doesn't store cache for that session—useful for testing.
  • Refresh with cache bypass: On Mac, hold Shift and click the Reload button (or press Shift+Command+R) to reload a page while ignoring the cache.
  • Check storage usage: On iOS, go to Settings > General > iPhone Storage to see how much space Safari's data (including cache) is using.

Troubleshooting

If the Develop menu doesn't appear: Go to Safari > Settings > Advanced and make sure the checkbox is ticked. If it still doesn't show, quit Safari completely (Command+Q) and reopen it.

If “Empty Caches” is grayed out: This can happen if you're in a Private Window. Close all private windows and try again.

If clearing cache doesn't fix a page: The issue may be caused by cookies or website data, not cache. Try clearing all website data via Settings > Privacy > Manage Website Data (Mac) or Clear History and Website Data (iOS).

If Web Inspector shows no resources: Make sure you're inspecting the correct page and that the page has finished loading. Also, some resources (like service workers) may be stored separately under the “Service Workers” section.

If you can't connect your iPhone to Mac: Ensure the iPhone is unlocked and trust the computer if prompted. Also, enable “Show Develop menu” on the Mac first.

Frequently Asked Questions

Does clearing the cache log me out of websites?

Yes, because cache is often stored alongside cookies. On Mac, “Empty Caches” only clears cache, not cookies, so you'll stay logged in. On iOS, “Clear History and Website Data” clears both, so you'll be logged out.

Can I view the cache on iPhone without a Mac?

No, there is no built-in way to browse the cache directly on iOS. You must use Safari's Web Inspector via a Mac.

Is it safe to clear Safari's cache?

Yes, it's completely safe. Safari will re-download necessary files as you browse. You may notice slightly slower loading on your next visit to a site.

How often should I clear the cache?

Only when you have a specific problem (like a page not updating) or if you're low on storage. Safari manages its cache automatically, so manual clearing isn't needed regularly.

Does clearing cache affect my passwords?

No, clearing cache does not remove saved passwords. Passwords are stored in the iCloud Keychain or your local keychain, separate from cache.

Can I clear cache for just one website on Mac?

Yes, go to Safari > Settings > Privacy > Manage Website Data, find the site, and click Remove. This clears cache, cookies, and other data for that site only.