If I have a RESTFUL API, and a front end with it. I am making requests to that API when the site loads.
Now how would I keep the data up to date. Like, if the user keeps the site open for 1 hour, but the data might have changed a bit.
So what would be the best way to ensure the data is up to date?