Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 157 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

If you go to your favorites, follow the link through to unfavorite on the page, press the browsers back button to return the favorites page, the post is still visible because of the browsers cache, clicking to unfavorite here results the page counter-intuitively becoming a favorite again. Would it be possible to check if the favorite status on the client and server are in sync before toggling the favorite?

share|improve this question
Back deliberately shows you the state of the page before you left it. The only way I can see to do this would be to async load the questions in to avoid an edge case, introducing pointless lag for the 99.9% of times this doesn't happen – Ben Brocka Mar 2 '13 at 17:53
I was thinking more about a check on state displayed on the client and state on the sever when the user unfavorites on the page. – user1937198 Mar 2 '13 at 18:01
Perhaps separate the unfavorite and favorite commands in to two post commands rather than a togle – user1937198 Mar 2 '13 at 18:02
Then if out of sync ignore the request – user1937198 Mar 2 '13 at 18:05
Either that or don't change the state client so the client side becomes in sync with the server again. – user1937198 Mar 2 '13 at 18:07
up vote 0 down vote accepted

This is pretty minor, to my knowledge you're the first person to notice it since favorites were introduced. Furthermore I can think of at least 3 other places where similar disconnects with toggle-able states and history are possible, that I'm fairly certain no one's every reported.

Any "fix" would also be a bit cumbersome, either throwing a message up or not toggling... but only on the first click; and would be a special case for favorites.

Not worth changing basically.

share|improve this answer
ok its a special case to remember – user1937198 Mar 5 '13 at 18:58

You must log in to answer this question.

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