Unless you work off line then you can set FireFox to clear history and the cache when it closes, it's under Tools>options>security tab, tick the 'clear history on exit' box and then go to advanced and tick the boxes for the things to clear, if you use auto logins don't tick the cookies, the active logins or the data boxes.