When using my one-page web app, I sometimes leave the page open overnight and find that when I come back in the morning, things don't work as they should. It seems like Javascript is acting up - edit-in-place loads incorrect data, ajax calls fail to fire... It doesn't seem to be an issue with the backend, but rather the browser possibly dumping its memory. There are no sessions involved.
I'm curious how Google calendar manages to stay open for 3 days and still send event alerts.
Even though I have a 'keep alive' call that runs every 5 seconds to keep the browser active, it doesn't seem to resolve the issue. Is there a way to instruct the browser to store everything in memory indefinitely?
(I'm aware that this topic might be discussed in various places on the internet, but I'm not sure what exactly to search for.)