LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   clearing Firefox cache automatically (http://www.linuxquestions.org/questions/linux-software-2/clearing-firefox-cache-automatically-788582/)

newbiesforever 02-11-2010 09:10 PM

clearing Firefox cache automatically
 
Can I set the Firefox cache to clear automatically after some event (exiting Firefox or logging out of the system,either would be acceptable)?

d_wing 02-11-2010 09:25 PM

Yes.

Under 'Edit', 'Preferences', 'Privacy', you can set it to delete cookies and clear history when you close Firefox, or (depending on which version you're using) you can choose 'Automatically start Firefox in a private browsing session' and everything will be cleared.

"Firefox will not record browsing history, search history, download history, web form history, cookies and temporary Internet files. Bookmarks as well as downloads on the other hand will be retained in private browsing mode.

The main difference between clearing data when closing the browser and using the Private Browsing mode is that the Private Browsing mode will never store data on the hard drive.

It is important to note that private browsing is only helpful to avoid records of browsing sessions on the computer used. It does not hide the user from the Internet Provider or websites that they visit."

newbiesforever 02-11-2010 10:39 PM

That';s not exactly what I expceted, but it works. Thank you.

Elv13 02-13-2010 09:13 PM

Use a cron job with
rm /home/username/.mozilla/firefox/profile_name/Cache/* -rf
as the command (edit username and profile_name to match yours). Run the command at the wanted interval.


All times are GMT -5. The time now is 08:08 PM.