But the URL was from the temp file, doesn't that mean it was viewed by itself?
I didn't realize temp files are deleted when the program is finished with them. I thought htey had to be manually deleted just like cache. My temp file is always huge.
That would have been from the "history" file.
Most web browsers have a bookmark file (a phone-book).
A history file (a list of who you last called).
And a cache (a recording of what was said or viewed).
The bookmark is obvious, to record your favorite sites.
The history and cache are inter-twined. you hit a link and don't like what you see; hit the "back" button --the history file has the record of the URL you last visited.
The cache has the content you have visited. no need to fetch the content from the net again, you've done it once and it's already on disk.
I didn't realize temp files are deleted when the program is finished with them.
From a programming standpoint a temp file is an individual file stored off in a special directory ('/tmp' or '/windows/temp' are good places). As a program ends, it should remove any temporary files that it created. But that is what should happen. Good programming practice has become rather "iffy", especially under MS-Windows.
My temp file is always huge
I suspect you are talking about your "swap" file.
This is a snapshot of various chunks of memory that are not needed at the moment. As you start more programs, the chunks of programs that are idle are written out to disk to make it appear there is more available memory than is physically installed in your machine.
When you start MS-Windows it looks to see if the swap file already exists, if not it will create it.