Solved How often do you clear browser history, cookies and cache and why?

Solved issue
Delete cookies and site data when LibreWolf is closed
 


youtube especially... try to base what they show you on what you click on..
.....but it's easier just to delete the cookies.

Unless you watch YouTube videos without an account, deleting cookies in your browser won't do much. Google keeps track of your video watching and browsing history. You can delete it in your YouTube account.

Youtube menu .png
Clear history .png
 
I keep cookies for the sites that I would need to login like forums.
Same here

I have Firefox set to clear cache when I close it.
Persistent storage... I'm still newish and plan to check if this happens in Linux


i'm not wanting the wwweb to be thrashing my SSD drive, so I reassigned my entire ".cache" folder to RAM. it's working just fine; no problems with anything whatsoever. other programs that use the ".cache" also regenerate the contents too. i don't miss anything, and i regained a bit of space. supposedly, every time i shut down the computer it gets deleted. it's just wierd how fast the folders get recreated; i guess that happens on boot for some things.
This is something I'll probably want to do later when I'm not so new.

The cache is configured to run in the /tmp directory so it is deleted on shutdown.
This sounds easier...


On this system it goes back to at least October of 2023.
Why would you keep them???
Deleting ALL cookies en masse, of course, usually comes with unwanted consequences.
I don't mind the consequences.


I don't depend on my browsing history so I simply don't allow firefox to keep a browsing history.
Bookmarks
Paranoid S.O.B. that I am, I decided to make sure that there will be nothing except my bookmarks, preferences and extensions (mainly ad blockers) persisting beyond a certain point - and I define that point.
Do you have black tape on the camera lens of your phone too?


ads following me around the web after a google search, that doesn't seem to be happening any more.
Me neither.
 
I realise that saying this won't win me any friends, but it's modern online reality, unfortunately. We're all of us just a "commodity". No more, no less.

(shrug...)


Mike. ;)

No matter how measures I take to protect my privacy they can still fingerprint me. Even with a VPN they still have my device ID. I've been asking around if there is a way to change it or mask it. I have a new geek friend who told me it's possible. He works in cyber security. He's also "Linux Certified", whatever that means. He said it can be done and gave me a link to start at. We'll see...

And yes, I did tell him to join this forum!
 
I use Librewolf currently. Not because it is totally secure. Nothing is. But it makes some serious attempts and appears to be quite believable/sincere in doing so.

In addition, I find it to be comfortable to use. Nothing unexpected, it behaves itself in my dual monitor setup, nothing to dislike thus far.

The Linux Mint settings in Appearance/Windows/Behaviour has remarkable input for controlling the dual monitor setup.
Librewolf also updates via the Update Manager in LM22.1
 
further comment re Librewolf...


NOTE: ONLY remove the old repository if your PC has previously run librewolf...otherwise Ignore.



From the above link, be sure to do steps 1,2,& 3
 
Curious if you delete browsing history, cookies and cache, how often and for what reason?

Reason I'm asking is because I used to clear it every now and then but figured out it serves no real purpose other than loosing your history in case you need it.
Troubleshooting web site navigation is an exception though to clear cache or cookies.

How long is your browsing history?
Do you maybe back it up?
Sadly, I never delete my cookies or browsing history. If i am getting tracked, then i am glad that someone knows who and where i am, since i am so old i am buggered if i know who or where i am most days, now. ;-)
 
No matter how measures I take to protect my privacy they can still fingerprint me. Even with a VPN they still have my device ID. I've been asking around if there is a way to change it or mask it. I have a new geek friend who told me it's possible. He works in cyber security.
VPN will not protect against detecting device ID.
If you just want to be anonymous I would suggest Tor browser. In the case that your ISP considers Tor somewhat "subversive" you can tunnel Tor within VPN as it seems that VPN is not that suspicious for most ISPs. In the case when ISP considers VPN is suspicious too, use TLS/VPN and tunnel with it Tor. Now your traffic looks like standard HTTPS connection.
So now your ISP is blind and you are anonymous too.
However none of this will protect against TLAs and such. Which is not your goal anyway ;)

Hardware masking is quite over the top but if you are interested read up about Qubes OS. This is one way of hiding your hardware ID. Of course there are other options too.
 
I rarely clean ~/.cache folder manually, as it uses just 2.5 GiB on disk:

2025-04-02_12-34-22_A.jpg


I use crontab, instead, to delete all ~/.cache files older than 365 days, after each boot:

Code:
@reboot sleep 420; find ~/.cache/ -type f -atime +365 -delete

Once, I have tried to clean cookies, using the browser capabilities, and I had to configure all sites again.
 
Hardware masking is quite over the top but if you are interested read up about Qubes OS. This is one way of hiding your hardware ID. Of course there are other options too.
Tor browser does it to a limited degree in that you only have 2 cores and a fake resolution (well, if you don't maximize it, lol). It fakes fonts and user agent (though nobody uses this these days since, IIRC you can can it in most browsers anyway FF = Chrome, Chrome = FF...) but the problem is few people have those specs so it's a flag to sites you're using Tor Browser, which is TBB's goal: needle in haystack -- the problem is there isn't enough hay yet.



I think the biggest thing, and hardly anyone seems to talk about this, is mouse cursor movement. It's like handwriting; pretty unique. I flip the DPI way high (I love my gaming mice for everything but gaming) when I browse Google-owned sites that force me to enable scripts. And I can use a mouse left- or right-handed about the same, but how effective that is in mitigating this technique, I have no idea. I think this is a pretty everything-agnostic method. I remember reading about this "possibility" if data processing wasn't too complex like 20 years or more back. But we have machine learning now, which kinda renders most data processing hurdles obsolete. So IDK if it's already in place. So far Youtube's still fooled by my random watching habits, lack of account, and using yt-dlp when I actually want to watch something.
 
I have Firefox set to clear cache when I close it.
We realised that the Chromium-based browsers / forks have no 'simple' or 'easy' way to accomplish this automatically, so one of our Puppy forum members figured out the following short stanza that we add to the very end of the launch wrapper-script in the 'portable' browsers most of us now use:-

Code:
yad --undecorated --center --text="                        Do you wish to clear the Chromium cache? " \
--button="YES PLEASE - clear cache":2 \
--button="NO THANKS - don't clear cache":1 \
#
foo=$?
#
[[ $foo -eq 1 ]] && exit 0
#
if [[ $foo -eq 2 ]]; then
rm -rf $HERE/PROFILE/Default/Cache/*
/usr/lib/gtkdialog/box_splash -placement top -bg "#07FE18" -fg black -timeout 5 -text "   ~~~ CACHE CLEARED! ~~~" && exit 0
fi

The $HERE variable is defined at the beginning of the wrapper script:-

Code:
HERE="$(dirname "$(readlink -f "$0")")"

....and is what enables keeping everything "in-house" within the portable's self-contained directory.

What this does is to bring up a wee YAD-powered GUI that gives the user the option of whether to clear the cache or not.

Screenshot-495.png


Just adds this functionality, AND makes things a bit more user-friendly in the process. A wee gtk-dialog 'banner' pops-up at the top of the screen for a few seconds, just to confirm what's happening.....


Mike. ;)
 
Last edited:
What this does is to bring up a wee YAD-powered GUI that gives the user the option of whether to clear the cache or not.
That means they have a CHOICE .....and that, is what Linux is all about.
 
We realised that the Chromium-based browsers / forks have no way to accomplish this automatically

I have just Brave open at the moment as I'm off to bed.

EofHc1G.png


I can look at the rest tomorrow but at least Brave lets you do so. I can't speak for the rest - but I suspect you're right and that Brave is an oulier.

As such, I just show it as an example where it could be done. I'm quite sure you've all investigated it to some extent already. If anything, it could be the exception that proves the point.

Either way, I'm off for the night.
 
I decided to check Chrome before expiring, 'cause I was curious.

09pxkw5.png


It's a bit hidden but it's there as an option.
 
@KGIII :-

Aye, most of 'em have it somewhere in the settings. However, we did it this way because it allows the user to decide for themselves on a per-session basis...thus enhancing user-friendliness even further.

(shrug...)


Mike. ;)
 


Follow Linux.org

Members online


Top