There is a Rails web-application. Each time I open a browser with kinda the 'restore previous session on startup' option (Chrome, Firefox, Edge) I can see the page with outdated data (old numbers, text, and so on). I have to refresh the page to see the actual data.
Is there any way to get refreshed pages on browser opening? Maybe there is a Rails setting... or there is a way to do something using JS.
So, the basic scenario is looking like this:
- open a page with some data
- close the browser (do not close the tab with our page)
- change the data for this page (e.g. in DB)
- open the browser and look at the state of our page
Expected result: the page contains relevant ('fresh') data. Actual result: the page contains outdated data.
Can anyone help me with that?