What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 131 Stack Exchange communities.

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
3  
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

1 Answer 1

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 .