The History API makes it possible to store a state object in the browser history. Now try this demo (but it’s the same behavior with any other else, pick your favorite :)):
- Click on some links to build some history
- Clear your browser history (full, or just for this site)
- You are still able to walk through the history
I expected that clearing the history would have an impact, but it’s not the case…
Can someone explain this behavior ?
OK it seems I got too much focused on the history API. I finally tried to do the same things (building history on any site, then clearing the history), and it’s the same behavior: still able to go back and forth.
So my understanding is that clearing history doesn’t really clear the history of an open tab: it just disappears from the list, but not from the real history until the tab is closed.