2

After pressing "more comments", or "load comments", when the real time function returns, and then going to a new page, and then pressing back, the new comments aren't loaded. It's like they don't exist. A hard refresh is the only thing that seems to load them.

This type of bug breaks usability of the site for an end user, and I would like to request the developers support the back button. If they don't then I believe there should be some type of indicator letting the user know that their support of the back button doesn't exist.

1
  • Not entirely clear on what you're referring to, but I'm gonna guess you mean the real-time notification of new comments and not the indicator that shows up when there are simply more than 5 comments on a given post. If so, that's expected behavior: your browser caches the page as it was when you loaded it, not whatever happened while you had it open. If I'm wrong, edit to clarify please.
    – Shog9
    Nov 21, 2015 at 1:56

1 Answer 1

2

That'll be because the comments are loaded in the DOM with javascript; and when you return to the page using your back button, your browser will load its cached version which hasn't got the DOM manipulations.

4
  • Thanks for your response. I know why it happens. It's actually quite obvious.
    – Ryan
    Nov 21, 2015 at 2:03
  • 1
    Right, so how is it a bug in SO then? Do you think it's a bug in your browser? There's not much SO can do about browser caching when it comes to back buttons.
    – worldofjr
    Nov 21, 2015 at 2:06
  • loading the comments via ajax exclusively would fix this.
    – Ryan
    Nov 21, 2015 at 2:12
  • 1
    It would also result in a lot of useless calls to the server, and since this is most certainly an edge case, that seems unnecessary.
    – worldofjr
    Nov 21, 2015 at 2:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .