Is it safe to delete the Firefox cache on a Mac?
- Yes. Mozilla’s own documentation says this folder is for caches that can safely be deleted. Bookmarks, passwords, history and add-ons are kept in a different folder.
- What it costs you: pages you return to load more slowly the first time.
- Does it come back? Yes. Firefox fills it again as you browse, and it can empty it each time it closes if you ask it to.
- SiftMac’s verdict: Rebuilds
1. What it is
Mozilla describes the cache as images, scripts and other parts of websites that Firefox stores temporarily to speed up browsing. On a Mac, each Firefox profile is split in two: a root folder for your data and a local folder for caches. Mozilla’s profile documentation says the local one holds caches that can safely be deleted.
- Root folder, to keep:
~/Library/Application Support/Firefox/Profiles. It has bookmarks and history (places.sqlite), passwords (logins.jsonandkey4.db), cookies, add-ons and settings. - Local folder, the cache:
~/Library/Caches/Firefox/Profiles, with one folder per profile.
2. Where it is
~/Library/Caches/Firefox/Profiles
Profile folders have a random prefix, and with one profile its name includes default. To be sure which is which, type about:profiles in the address bar: every profile lists a Root Directory and a Local Directory, and the Local Directory is the cache side.
3. How big it gets
It depends on how much you browse. Typing about:cache in the address bar shows the disk cache’s location, how many entries it holds and its total size. To measure every profile’s cache from Terminal:
du -sh ~/Library/Caches/Firefox/Profiles/*
4. How to clear it safely
- Choose Firefox › Settings (Preferences in some versions) and select the Privacy and security panel.
- In the Browsing data section, click Clear browsing data.
- Next to When, choose Everything, and make sure only Temporary cached files and pages is ticked.
- Click Clear.
The menu button’s History › Clear Recent History… offers the same choice. Leave cookies unticked and you stay signed in to sites.
Or quit Firefox (⌘Q) and clear the folder Mozilla calls safe to delete:
rm -rf ~/Library/Caches/Firefox/Profiles/*
Clear it every time Firefox closes
In Privacy and security, go to the History section and choose to customise what Firefox remembers. Tick Clear history when Firefox closes, click Settings… beside it, tick Temporary cached files and pages and nothing you want to keep, then click Save Changes.
5. What happens afterwards
- Firefox opens with your tabs, bookmarks and passwords; only the cache starts empty.
- First visits to sites are slower while it refills.
- If you removed the folders in Terminal, Firefox creates new ones as it needs them.
- Cookies and site data weren’t part of this, so sign-ins stay.
Questions
Is ~/Library/Caches/Firefox safe to delete?
Yes, with Firefox quit. Mozilla’s documentation says a profile’s local directory, which on a Mac is under ~/Library/Caches/Firefox/Profiles, holds caches that can safely be deleted.
Will clearing the Firefox cache delete my bookmarks or passwords?
No. They’re in the root profile folder in ~/Library/Application Support/Firefox/Profiles, which clearing the cache doesn’t touch.
Why does Firefox have folders in both Caches and Application Support?
Mozilla splits each profile in two: persistent data in Application Support and caches in Caches, so the cache can go without risking your data.
Can Firefox clear its cache by itself?
Yes. Turn on Clear history when Firefox closes, and in its Settings… choose only Temporary cached files and pages.
How SiftMac handles it. Its App caches category lists ~/Library/Caches/Firefox with its size and clears it only while Firefox is closed; if Firefox is open, it’s left alone, and that’s checked again right before cleaning. The profile in Application Support, with your bookmarks and passwords, isn’t part of it.
Download SiftMac · scanning is free, and so is your first 2 GB of cleaning · See how it works