title: Is there a way to cache JSON on client side for limited time in order to avoid making 2 GET requests to the API if the user visits the same page twice
body: <p>Imagine this scenario - A user visits their profile page on URL <code>/user/username</code> and the component that loads on this URL has to make 1 GET request to the API in order to obtain the information about the user with that username. So far so good, however, if the user visits another URL and then decides to come back to the profile page with URL <code>/user/username</code>, the component makes a new GET request for the same information that it got earlier which leads to 2 drawbacks - the information doesn't appear instantly as the component has to wait for the GET request and I'm making a second call to the API.</p>
  
  <p>This is why I am wondering if it's possible to somehow cache that information so that when the user visits his profile page again, the component wouldn't have to make a second GET request. Also this cached information should be able to expire after a certain amount of time like an hour so that it is never inaccurate.</p>
  
  <p>Is this achievable and worth it?</p>