Scenario:
- User is logged in.
- Site is updated.
- User has cached html/js and calls an old endpoint. The world ends.
I know sites often say something along the lines of "The product has been updated, refresh your browser." But how is this normally done?
I can imagine two ways:
- Occasionally make call to db on navigation, check version stored in angular constant against version stored in db. If mismatch, notify.
- Some sort of scenario with SignalR pushes to check even if the browser isn't making any actions on the site.
Am I missing anything? What's a good way to do this given our stack (see tags)?