Playing the online game, Forge of Empires, I get the notice to clear cache. This is run in Chromium Browser on my Raspberry Pi 4 b 4Gb running Raspberry OS 32 bit.
First, you will need a script to clear your history/cache. This one is a good example, but it is written for Windows, so you will need to modify it to use bash and to use the paths for where Chromium is installed on your pi.
Next, you will need a way to run the script every time your pi starts. There are many ways to do this, one of which is crontab:
sudo crontab -e
@reboot /bin/bash /home/pi/script.sh &
Raspberry Pi OS (32-bit) with desktop and recommended software. Image with desktop and recommended software based on Debian Buster.
Since it is Debian, you should look at /home/user/.cache directory.
I could find only two things connected to chromium on my debian based distributive:
So, you might add such strings in your
/etc/rc.local boot file. If there is no one, you should create it.
# echo """ /bin/rm -fr /home/ubuntu/.config/chromium/ /bin/rm -fr /home/ubuntu/.cache/chromium/""" >> /etc/rc.local /bin/chmod +x /etc/rc.local
ubuntu with you username. You can find it by
# /bin/whoami root
config will be deleted automatically each boot time.