3 ms·
So how do you differentiate between an actual refresh and a "close tab, open website 2 days later"? Also, what happens when someone has 2 tabs open with the ap
by viraptor 11y ago
So how do you differentiate between an actual refresh and a "close tab, open website 2 days later"?
Also, what happens when someone has 2 tabs open with the app, closes one and tries to do some action in the other?
Edit: What I really want to ask is... why is this ever necessary?
- _RPM 11y agoIt might be a good idea to add a timestamp to the local storage item, preferably make it a JSON string. Then decide a reasonable amount of time between a "refresh" to count it as an actual refresh
- cswangpeng 11y agoit is very important for single page application. In such application we need detect this from framework routing entry.
- viraptor 11y agoWhy? When you load the page you either have existing dom tree or not. Client side already knows if this is the case without extra session variables.