Where does my browser store temporary data?
Solution 1
Mozilla Firefox
~/.mozilla/firefox/[something].default/Cache
You can go to about:cache
in your Browser to see information about this as well.
Chromium
~/.cache/chromium/[profile]/Cache/
Google Chrome
~/.cache/google-chrome/[profile]/Cache/
Also, Chromium and Google Chrome store some additional cache at ~/.config/chromium/[profile]/Application Cache/Cache/
and ~/.config/google-chrome/[profile]/Application Cache/Cache/
Safari
~/.wine/drive_c/Document and Settings/$USER/Application Data/Apple Computer/Safari
~/.wine/drive_c/Document and Settings/$USER/Local Settings/Application Data/Apple Computer/Safari
Other than this, browsers can store temporary files in /tmp/
as well
Reference: Chrome, Chromium, Firefox, Safari
Solution 2
Temporarily downloaded files
All Linux browsers (including Firefox and Chrome) store "Open for viewing" downloads in the /tmp
directory. Old /tmp
files are deleted the following situations:
- When you close your browser
- When you restart Ubuntu
- When your disk space is low
If you want to make a temporary download permanent, you can simply navigate to /tmp
, find the file in question, and copy it into your home folder.
Streaming media
Flash, audio, and video files you play are cached in highly obfuscated directories like $HOME/.mozilla/firefox/3lms8ke.default/C/2A
for Firefox. Woozie's answer to this question can help you find and retrieve flash files. Remove the | grep Flash
part of his command to get a list of all cached files by their data type.
Dan
Updated on September 18, 2022Comments
-
Dan over 1 year
How can one look at content of temporary cache of his computer ?
After something not actually downloaded (just pressing the button to open data not download) to any directory, this data temporarily stored in some place but my computer stores them as permanent.
How can I look at that directory then erase unused data ? In other words, my "browser puts stuff in"
ex: to watch video, Just press open rar file from website like rapid. Or to look at ebook, Just press open zip file.
They must be erased automatically but my computer stores them.
EDIT: Most of time, I am using Firefox, but I have also used chromium and safari.
-
jrg over 12 yearsWhich browser? Chrom(ium)e, Firefox and Opera all store it in different places.
-
-
Marius Gedminas over 12 yearsI've seen Flash streams appear in /tmp while they were being streamed with Chromium. It's easiest to find them with
ls -rt /tmp
(reverse sort by modification time, so newest files end up being listed last). -
Admin almost 2 yearsUnfortunately this is not true anymore with Firefox 99.0 on Ubuntu. When I click on a link points to a PDF file, if I choose open in Firefox (instead of save, for example), pdf files get downloaded into my linux home. Then Firefox opens it from my linux home. If I set Firefox to NOT ask what to do with that PDF file just open it with embedded PDF viewer, it works as expected and does not use my linux home.