title: cache data feed for webpage
body: <p>I'm still a novice website builder, so please go easy on me ...</p>
  
  <p>I am displaying a webpage onto a TV viewable to the public.  There is a networked media player behind the TV which plays the webpage, it's not a PC.</p>
  
  <p>The webpage displays regularly updated data which comes from a MySQL database, and I simply use a page refresh to update the webpage.  So everything works well, however ...  if there is a loss of internet connection, then of course an error appears on the TV when the page refreshes.   </p>
  
  <p>Is there a way to remove the page refresh, have a piece of code that will still retrieve the data in the background, and ideally cache that data so that even if there is a loss of internet the TV will still continue to display correctly (even if the data is slightly outdated) ?</p>
  
  <p>Many thanks.</p>