Imagine a scenario where a user accesses mydomain.com
. At this point, the history stack contains only one entry. Then, the user clicks on a link within my website that leads to mydomain.com/cool
, causing another state to be pushed onto the stack. Now, with two entries, mydomain.com/cool
is the most recent one. What happens to the history stack when the user navigates to google.com
?
Is google.com
placed on top of the existing two entries in the browser's history stack? Does each tab have its own specific history stack?
Furthermore, if the user decides to go back by pressing the back button, will the browser send a request to the server for mydomain.com/cool
?