This PR is effectively an imperfect patch. A stale client should avoid sending any backend request, otherwise we will broadcast to other tabs that they need to refresh. (Alternatively, we can choose not to broadcast, but that feels like the less-good, less-user-friendly, more convenient solution. Alternatively alternatively, upon getting a "need to refresh" broadcast message, a tab could ping for a backend health check.) I don't believe we have any other "background tab" requests being sent to the back end at this time.
This was something I should have caught as part of my work on 10349, but I was focused on idle logout at the expense of user-initiated logout.
I ran into an error today on test. I had two tabs open:
This PR is effectively an imperfect patch. A stale client should avoid sending any backend request, otherwise we will broadcast to other tabs that they need to refresh. (Alternatively, we can choose not to broadcast, but that feels like the less-good, less-user-friendly, more convenient solution. Alternatively alternatively, upon getting a "need to refresh" broadcast message, a tab could ping for a backend health check.) I don't believe we have any other "background tab" requests being sent to the back end at this time.
This was something I should have caught as part of my work on 10349, but I was focused on idle logout at the expense of user-initiated logout.