|
|
|
|
|
by jacquesc
3559 days ago
|
|
The result of this thinking is when I press the back button, I have to refresh the page manually because the data is stale. My daily use case for this is Github Issues. Simple repro: Click an issue, make a change, press back. Now the list view is out of date and doesn't show my changes. So I have to refresh. I think a background XHR request is the best approach (until browsers fix this issue for real). On page load: pull latest from server (if network is down, then no-op). If no changes, then don't change. If there are changes then replace inline without a new page reload. |
|
If I click back I want to see what I saw last time. e.g. I might have seen 3 news articles I was interested in, I click though and read the first one. When I click back I want to see the exact same list as before, and be able to read the next article I saw; not new articles that have been written while I was reading the last one.
You can s/news article/github issue/ and my response is the same.