agrosner
06/28/2022, 5:29 PMHttpFetchPolicy
. It is not clear to me whether the http cache has an option for both cache and network both times (cache first, then hit network) . does the CacheFirst
option enable hitting both everytime? the normalized cache supports CacheAndNetwork
agrosner
06/28/2022, 5:30 PMmbonnin
06/28/2022, 7:04 PMCacheAndNetwork
was added after the fact and it hasn't been implemented for the HTTP cache indeedmbonnin
06/28/2022, 7:04 PMagrosner
06/29/2022, 2:31 PMagrosner
06/29/2022, 2:40 PMagrosner
06/29/2022, 2:40 PMmbonnin
06/29/2022, 2:43 PMmbonnin
06/29/2022, 2:43 PM.watch()
as .watch()
is really only possible with the normalized cachembonnin
06/29/2022, 2:44 PMHttpFetchPolicy.CacheAndNetwork
, I think you can relatively easily make an extension function that "bundles" 2 calls and returns a Flow
agrosner
06/29/2022, 2:45 PMmbonnin
06/29/2022, 2:46 PMCacheOnly
, there's no reason it hits the network twiceagrosner
06/29/2022, 2:55 PM