I am looking for the best approach to update a website with live data every 10 minutes. I have been looking on the net, but cant really find a sample.
This is just a hypothetical situation for me. If I want to get live data from somebody and put it in my website what would the best way to do it?
An easy example is a sports score website that gets the scores data from some where else that provides live sports scores and your site displays live sports score changes.
In JavaScript, you can probably do something like this (it’s untested), but every 10 minutes you do a
HEAD-requestagainst the server, if the content of the XML-file is modified do aGET-requestand process the data.