Why do most browsers store browsing history by default? It seems like people often have to go to the hassle of manually deleting their history or using incognito mode. Are there some major advantages to storing this data in most cases?
5 Answers
There are a lot of advantages. Here are some:
- Auto-completion of previously visited URLs you forgot, which can speed up the web surfing process tremendously. You might have remembered parts of a URL or website title, and your browser can usually pick those up if you typed them in. I love this feature.
- This can offer extra security. As mentioned by kasperd, it can greatly reduce the risk of typosquatting.
- Storing previously-loaded data in a cache to speed up web-browsing. Great for slow connections. Great for reducing load on web servers.
- Storing cookies so websites remember your login information, etc.
-
30Auto-completion of URLs can even be beneficial to security because it reduce the risk of typosquatting.– kasperdCommented Jan 15, 2016 at 20:24
-
3
-
5Citation, ref. point 2, it's built into the HTTP protocol that clients can cache HTTP responses. Paraphrasing Section 13: "Caching would be useless if it did not significantly improve performance.The goal of caching in HTTP/1.1 is to eliminate the need to send [full requests and responses, reducing network round-trips and network bandwidth requirements]". Cache != browser history, but they overlap. (And in dialup days, a history allowed some level of offline browsing). Commented Jan 15, 2016 at 21:35
-
3
-
2Every now and then, I also pull up my own history and search through it to try to find a page I visited in the past but can't remember in detail.– KevinCommented Jan 17, 2016 at 3:17
The HTML standard is that unvisited links and previously-visited links are styled differently. By default in most browsers, an unvisited link is blue and a visited link is pink, but nearly every web page these days overrides that. In order to do this, you have to have a list of previously visited links so that you know what style to use for every link on every page, which is to say a browser history.
-
1You do not need a list of visited links, you merely need a method that recognizes a links as visited. I could imagine that such a compare-only history (for limited time) could be implemented differently (Bloom filters) Commented Jan 15, 2016 at 20:52
-
4Actually, the standards (I'm looking at w3.org/TR/css3-selectors section 6.6.1.1) explicitly point out the privacy problem with allowing visited links to have a different style (which can allow a site's Javascript to find out whether a particular foreign URL has been visited or not) and explicitly allows browsers to take steps to plug this hole: "UAs may therefore treat all links as unvisited links, or implement other measures to preserve the user's privacy". Commented Jan 16, 2016 at 9:24
-
@HenningMakholm: The distinction between visited and unvisited links long predates the relevant vulnerability (let alone the recognition of it).– ruakhCommented Jan 17, 2016 at 4:14
Because it fits the majority
Surveys (e.g. http://www.aleecia.com/authors-drafts/tprc-behav-AV.pdf) show that something like ~25% of people have ever used incognito mode and ~50% of people have ever cleared browser history.
Needless to say, many of them don't do that all the time, so at any given moment a majority of users prefer to use a mode that does store browsing history, thus it's reasonable to enable it by default.
-
A follow up study should be: what percentage of people even know how to enable incognito mode or clear their browser history?– NotMeCommented Jan 15, 2016 at 20:04
-
6That's like saying that few people only "use" an airbag in their car, hence a majority f people prefer not to have an airbag in their car. Commented Jan 15, 2016 at 20:54
-
2I don't buy this at all. For example, surveys show that much fewer than 25% of people have ever had a million dollars in their bank accounts but that doesn't mean that the majority of people prefer not being millionaires. I'd also considered exactly the same example as @HagenvonEitzen but he got their first! Commented Jan 15, 2016 at 20:55
-
1@DavidRicherby 100% of people have a browser that can do that. Not only most of them didn't use it, most of them that have tried it don't use day to day - it does show an intentional preference. I'm sure that the users who tried are very happy for the feature existing when they need it, but most of the time they turn it off because it's more convenient.– PeterisCommented Jan 15, 2016 at 20:59
-
1@DavidRicherby winlab.rutgers.edu/~janne/WPES14-privatebrowsing.pdf shows that ~1/3 of people are not informed about private browsing, so some 66% are not ignorant. crypto.stanford.edu/~dabo/papers/privatebrowsing.pdf shows that ~ 6% of sessions use private browsing. So, speaking very roughly about averages, non-ignorant people still use non-private browsing 9 times out of 10.– PeterisCommented Jan 15, 2016 at 21:12
Typically, if you know ahead of time that you're going to want to revisit a page in the future, you'd add it to your favourites/bookmarks. The history feature is there for when you suddenly realise you want to revisit a page you were on yesterday / a week ago / a month ago. It is too late to turn the feature on.
Yes, from a security perspective it seems foolish to have the history be effectively opt-out rather than opt-in … but, if it weren't, the feature would be completely useless altogether. That's the constraint.
-
1After reading the question above, it struck me that I've never bookmarked this web site. I just type "sec" into the title bar of my web browser and hit return. That's actually easier than bookmarking web sites these days.– Simon BCommented Jan 17, 2016 at 22:37
-
@SimonB: I use the bookmarks bar to great effect on SE, but your observation matches the way I use some other sites regularly. Commented Jan 17, 2016 at 22:54
Almost all web browsers implement caching, so they technically have to manage a list of what is in the cache anyway. While the history feature nowadays might be implemented separately, and while you could build a cache that does not make deriving a history from it without analysing the cached content trivial (by using hashes instead of URLs as cache keys), for historic web browsers it was an opportunity to implement two features at once. And as someone mentioned, you need some history to implement a back button, and that feature - and caching the page the back button got you to - was even more necessary back then than now. So even if a modern browser lets you opt out of displaying that history, it is then just pretending not to have that information stored..