title: Load Remote Image, then Convert to Base64 String Client Side for Caching
body: <p>Here's what I'm trying to accomplish:</p>
  
  <ol>
  <li>Load an image from a remote server</li>
  <li>Save the image's base64 data to localStorage</li>
  <li>On the next request, if the localStorage item exists, load the image from localStorage data</li>
  </ol>
  
  <p>This is in an attempt to strive for the fewest number of API calls - the image is a dynamically generated QR code via API call, so converting into a Base64 string before deployment is not an option here.</p>
  
  <p>Thanks!</p>