Search code examples
html5-history

HTML5 History API: surviving to a a clear history?


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 :)):

  1. Click on some links to build some history
  2. Clear your browser history (full, or just for this site)
  3. 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 ?


Solution

  • 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.