title: Firebase offline capabilities as cache
body: <p>I am wondering whether it is a sound strategy to use the firebase offline capabilities as a "free" cache.<p>
  Let's assume that I am in activity A, I fetch some data from firebase, and then I move to activity B, which needs the same data. If the app is configured with setPersistenceEnabled(true) and, if necessary, also with keepSynced(true), can I just re-query the same data in activity B, rather that passing it around?<p>
  I understand that there is a difference between the two approaches regarding reading-from-memory and reading-from-disk (firebase offline cache). But do I really get rid of all the network overhead by using firebase offline? </p>
  
  <p>Relevant links:<br>
  <a href="https://stackoverflow.com/questions/34486417/firebase-offline-capabilities-and-addlistenerforsinglevalueevent">Firebase Offline Capabilities and addListenerForSingleValueEvent</a>
  <a href="https://groups.google.com/forum/#!msg/firebase-talk/ptTtEyBDKls/XbNKD_K8CQAJ" rel="nofollow noreferrer">https://groups.google.com/forum/#!msg/firebase-talk/ptTtEyBDKls/XbNKD_K8CQAJ</a> </p>