title: I would like to cache images in react, what should I use for storage
body: <p>I would like to cache image in react.</p>
  
  <p><code>&lt;img src='www.myimage/dog.png' /&gt;</code></p>
  
  <p>Every time I load page, <code>dog.png</code> is downloaded from page. I would like to store it in browser with some <code>ttl</code>.</p>
  
  <p>Should I use <code>localStorage</code>, <code>sessionStorage</code>, <code>indexedDb</code> or what is the best place to store and why?</p>
  
  <p>Thank you!</p>