What clearing cache does and why you might need to
When you browse in Safari, your Mac or iPhone stores copies of web pages, images, and login information in a space called the cache. Over time this builds up and can slow down your browser or use up storage space. Clearing the cache removes these stored files and forces Safari to download fresh versions of websites the next time you visit them.
You might clear cache if Safari is running slowly, if a website is showing outdated information, or if you want to free up storage on your device. Clearing cache also removes cookies and browsing history if you choose those options, which can help with privacy.
The process is different on Mac and iPhone, and you have the choice to clear everything at once or pick specific time ranges. This guide walks you through both devices.
Key Takeaways
- On Mac, open Safari, click Safari in the menu bar, select "Clear History", and choose how far back you want to clear.
- On iPhone or iPad, go to Settings, tap Safari, scroll to "Clear History and Website Data", and confirm your choice.
- Clearing cache removes stored website files but does not delete your saved passwords unless you specifically choose to clear all browsing data.
- You can set Safari to clear cache automatically when you close the browser on both Mac and iPhone.
Clearing cache on Mac
On your Mac, open Safari and look at the menu bar at the top of the screen. Click "Safari" (the word itself, not the icon), and a dropdown menu will appear. Look for "Clear History" near the bottom of that menu and click it.
A window will pop up asking "Clear history from:" with a dropdown menu. You have four choices: the last hour, today, today and yesterday, or all history. Pick the time range you want. Below that, you will see checkboxes for what to clear — by default, Safari checks "Cookies and other website data" and "Browsing history". Leave these checked unless you have a reason not to. Then click "Clear History" to finish.
If you want Safari to clear cache automatically every time you close the browser, go back to the Safari menu, click "Settings" (or "Preferences" on older Macs), then click the "Privacy" tab. Check the box that says "Remove all website data when quitting Safari". From then on, your cache will clear itself.
Clearing cache on iPhone and iPad
On your iPhone or iPad, open the Settings app (the gray icon with gears). Scroll down until you see "Safari" and tap it. You are now in Safari's settings page.
Scroll down to the bottom of the page. You will see a red button labeled "Clear History and Website Data". Tap it. A popup will ask you to confirm — tap "Clear History and Data" again. Safari will now remove your browsing history, cookies, and cached website data.
Unlike Mac, the iPhone version does not let you pick a specific time range — it clears everything. If you want to clear cache more often, you can set Safari to do this automatically. In the same Safari settings page, look for "Clear History and Website Data" (the setting above the red button). Tap it and choose from "Manually", "After One Day", "After One Week", or "After One Month". Select your preference, and Safari will clear automatically on that schedule.
What gets cleared and what stays
When you clear cache, Safari removes the temporary copies of websites it has stored, along with cookies (small files websites use to remember you) and browsing history. Your saved passwords and usernames do not get deleted unless you specifically clear "Autofill" data, which is a separate step.
On Mac, if you want to keep your browsing history but only clear cache and cookies, you can uncheck "Browsing history" before you click "Clear History". On iPhone, you cannot separate these — clearing always removes history, cookies, and cache together.
Bookmarks, reading list, and iCloud tabs are never affected by clearing cache. Your login information for websites stays saved unless you manually delete it from Safari's password manager.
When clearing cache does not fix the problem
If Safari is still slow after clearing cache, the issue may be something else. Too many open tabs, browser extensions, or a slow internet connection can all slow down Safari. Try closing unused tabs or restarting your device.
If a website is still showing old information after you clear cache, try opening the site in a private browsing window. Private windows do not use cached data at all. On Mac, click File > New Private Window. On iPhone, tap the tabs icon at the bottom right, then tap "Private" and open a new tab.
If you are having trouble logging into a website after clearing cache, it is because your saved login information was cleared too. You will need to enter your username and password again. Safari will ask if you want to save it for next time.
Clearing cache for a single website
You do not have to clear all your cache at once. On Mac, you can clear data for just one website. Open Safari, go to that website, then click Safari in the menu bar and select "Clear History". Choose your time range, and Safari will only clear history and cache for the site you are currently viewing.
On iPhone, there is no built-in way to clear cache for a single website. Your only option is to clear everything or to use private browsing for that site going forward.
Frequently Asked Questions
Will clearing cache delete my passwords?
No. Clearing cache removes temporary website files and cookies, but your saved passwords stay in Safari's password manager. If you want to delete passwords, you have to do that separately through Safari settings.
What is the difference between cache and cookies?
Cache stores copies of images and web pages so they load faster next time. Cookies are small files that websites use to remember you — like keeping you logged in or remembering items in your shopping cart. Clearing cache removes both.
Should I clear cache regularly?
Only if you notice Safari slowing down or if you are running low on storage. For most people, clearing cache once a month is enough. If privacy is a concern, you can set Safari to clear automatically when you close it.
Why is a website showing old information after I cleared cache?
Some websites store information on their own servers, not just in your browser cache. Clearing your cache does not affect what the website itself remembers. Try refreshing the page or opening it in a private window.
Can I undo clearing cache?
No. Once you clear cache, those files are gone. You cannot recover them. If you accidentally cleared something you needed, you will have to log back in or re-enter information.