Why google chrome does not cache search history?

Mr.AF :

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: enter image description here

of worth to say that swiching between pages are being performed by javascript below function:

window.location.replace({URL});
blex :

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 the assign() method is that after using replace() 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.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=29871&siteId=1