How to handle browser`s go back action in front and back end separation project`s pagination? [duplicate]

Usually we use www.foodoc.com?page=1 to get HTML. So if I jump to page=3 from page=1. Browser`s go back button can do a good job of fulfilling our expectations.

But if I use AJAX to do pagination. All things were being done by javascript. User click browser`s go back, every thing will be gone. This user will go back to the other page before he reached this page.

So, is there any solution can help me to solve this situation?