Quite often on pages with infinite scroll you might face scenario:
- you're scrolling a lot,
- then you click some link from inifinite list,
- you dont like what you've clicked
- so you go back
- you'd like to continue scrolling from the point you've left.
- but all items you were scrolling are not there and you need to scroll everything you've already seen again.
How do you handle those situations? Do you know any solution for that? Is there any way to save state of page or at least know what this situation was and load proper ammount of infinite list and scroll user to last seen item.
This is a fairly unspecific, open-ended question, but let me share some thoughts:
One reason the page you're returning to is reloading (and thus resetting) is because it prohibits the browser from caching it. If the page containing the scroll doesn't absolutely have to have pragma:no-cache etc etc, then try without. This may already solve the problem, because the browser is allowed to return to the last known state.
If this doesn't work or you need to make sure you have fresh data on each page load, then the solution will depend on your content and your framework. Maybe you can store the state server-side in the session and rebuild the page accordingly, or you can set a cookie with a reference and let some client-side script poll up to that point when you reload.
Other than that, all I can say is that most infinite scrolling frameworks simply say "well, this is a problem", period. An alternative would then be to use explicit pagination.