Reputation: 4788
I am facing a strange behavior in the chrome that i didn't know how to fix it. when i surf between pages, i'v notified that Google chrome does not cache my searching history. look at below figure:
of worth to say that swiching between pages are being performed by javascript
below function:
window.location.replace({URL});
Upvotes: 1
Views: 52
Reputation: 25634
From the MDN docs for location.replace()
:
The
Location.replace()
method replaces the current resource with the one at the provided URL. The difference from theassign()
method is that after usingreplace()
the current page will not be saved in session History, meaning the user won't be able to use the back button to navigate to it.
location.assign(url)
or location.href = url
would probably be more appropriate to use in your case.
Upvotes: 2