This is browser dependent. For Safari, Preferences - Privacy - Remove All Website Data.And/or, Develop-Empty caches. Fox and Chrome have their own settings. Something you may want is "Private Browsing" which doesn't remember anything after you close the tab.