25

Is it ok to not clear browser history for 5 years?

Will it perhaps fill my whole drive (~220GB) if I never clear it?

How is Edge/Firefox/Chrome handling users who never clear the history?

zomega
  • 1,254
  • 1
  • 10
  • 23
  • 12
    I think you need to clear up whether you mean [browser cache](https://askleo.com/whats_a_browser_cache_how_do_i_clear_it_and_why_would_i_want_to/) or [browser history](https://en.wikipedia.org/wiki/Web_browsing_history). – Sam Dean Feb 04 '20 at 11:18
  • 1
    Or the cookies? – Robin Feb 04 '20 at 13:20
  • I think cache is the only thing really needing space? – zomega Feb 04 '20 at 16:53
  • Personal anecdote: I remember IE 6 having an unusually large (but configurable) cache limit for the era, something like 5 GB when 20 GB an 40 GB hard disk were common. A machine shared by multiple users would fill up quickly and only an administrator would have the rights needed to clear everybody's cache. – marcus Feb 04 '20 at 17:50
  • i have not cleared my history and cache in... ever, so like 11 years on a single system under daily use – Richie Frame Feb 04 '20 at 19:01
  • I clear mine religiously on exit because of opsec paranoia and in a likely futile attempt to limit tracking between sessions. Naturally this goes for cookies and any other browser data. – user2647513 Feb 05 '20 at 21:27
  • Firefox 72 reserves 1GB of disk space for resource caching by default. When the cache limit hits, it removes the least recently used cache entries before saving new cache entries. – Pepijn Olivier Feb 06 '20 at 03:32
  • Necessary for what? Is only space the problem here? Or do you worry about privacy as well? – Quora Feans Feb 06 '20 at 17:30

3 Answers3

49

Caches, if behaving properly [which they do almost always], are like soap

…self-cleaning.

The only time you need to clear any cache is if you have clear indication it is in some way misbehaving; otherwise you can just let it do its job.

It will naturally clear old data to make way for new & ought to maintain a relatively stable size over time.

Tetsujin
  • 47,296
  • 8
  • 108
  • 135
  • 1
    Can you tell how the maximum size of the cache is calculated? Maybe in percentage of disk capacity? – zomega Feb 04 '20 at 16:45
  • 5
    Honestly, I've never even looked. It's never been a bother. See the other answers for info on that. In 30-odd years of computing I've never cleared a browser cache & once by accident I cleared the history… which drove me mad for months until I refilled it. I **like** that my browser suggests where i go, based on having been there before. – Tetsujin Feb 04 '20 at 16:53
  • 3
    @Tetsujin, as a computer tech with +15 years of experience, I can tell you that clearing the browser cache was a very common diagnostic/troubleshooting technique in the late 90's to early 2000's. – computercarguy Feb 05 '20 at 20:31
  • good answers have already been given. Some additional info, remember that a browser will also happily fill your disk with downloads (in your downloads folder) or temporary files (for instance when you select "open" instead of "download", actuall the file/program gets downloaded but goes to userDir/AppData/something temporary instead). And the browser is not monitoring the size here. But these are supposed to be voluntary user actions, it's not cache. – Pacopaco Feb 05 '20 at 21:44
  • @computercarguy - I work tech support for an online game where it's ***still*** the "bad advice meme that just will not die!!" Much of our time is spent trying to persuade people that this advice was only good back in the days no-one knew what else to try. *We now know what else to try!* – Tetsujin Feb 06 '20 at 19:37
  • @Tetsujin, it might not be good advice today, but I seem to remember really old versions of IE where it was required. MS seemed to not realize that the cache would ever fill, so they didn't auto-remove old items. Back when HTML was about it, then people started using linked CSS & JS files, pics, animated GIFs, audio, and {gasp} video, so the cache would fill up, causing IE to crash by not being able to add to it until the cache max was increased or the cache was emptied. Those were the bad old days. Glad they are (mostly) over. – computercarguy Feb 06 '20 at 19:43
  • @computercarguy - yup, I'm with you there… now to educate the great unwashed ;) – Tetsujin Feb 06 '20 at 19:45
22

Typically every browser has a maximum cache size that can be configured.

Internet Explorer typically set it to some percentage of the disk space available, either 5% or 10%, other browser may use a percentage or a fixed cache size. Firefox defaults, I believe, to a 1GB cache and I think Chrome is a similar amount.

Upon reaching the limit the programs will purge items from the cache on a least recently used basis.

No browser cache should simply grow to occupy an entire disk. It would be surprising for any items as old as 5 years to still be in the cache and you probably don't need to worry.

Firefox: changing the cache size
Chrome: disk cache size registry settings

If in doubt, search for <browser> cache size in your favourite search engine.

Mokubai
  • 89,133
  • 25
  • 207
  • 233
  • Your answer is about caches, but it looks like the question is about history. Will browsers delete old history entries (i.e. forget that you ever visited www.geocities.com on June 8 1997, not just delete cached files from that version of the site) if the history list becomes very long or very old? – interfect Feb 03 '20 at 23:16
  • 4
    @interfect that would appear to be a disagreement between the question body and title. From the title it appears that the caches are of primary importance as that is where the vast quantity of data is going to be taken. I seriously doubt that time and dates of visits are going to be significant for any but the most die hard of fast browsers that are operative 24-7, but I take the point and will have a look into it. – Mokubai Feb 03 '20 at 23:33
18

There is no way that a modern browser will allow your drive to fill up with cached files.

Each browser is set to a limit that won't be passed. You can manually change those limits if you so wish:


Firefox

Firefox (latest version) is set to a maximum limit of 1024 MB (at least that's the value for me and I have never changed it) and you can change that by accessing "about:config" in your URL address bar, and modify the value of browser.cache.disk.capacity.


Chrome

Chrome's settings appears to be a little trickier and the default value is a percentage out of your drive free space. You can find how to change that value here What is Chrome default cache size limit?


Edge

Edge is sharing the same settings as the old internet explorer and the default seems to be automatic as well. Go to Control Panel - Internet Options and under the General tab you will find a Settings button for "Browsing history".

StayOnTarget
  • 1,178
  • 1
  • 14
  • 26
Sergiu Elmi
  • 311
  • 1
  • 11