Haneke / HanekeSwift

A lightweight generic cache for iOS written in Swift with extra love for images.
Apache License 2.0
5.2k stars 591 forks source link

Question: Is it possible to change the fetch order to check internet first? #366

Open xemacobra opened 8 years ago

xemacobra commented 8 years ago

I'm using Haneke to cache http requests. My use case is to use the cache only as a fl-back in case internet is not available. In that case I show users the most recent data.

Is it possible to change the priority so it would check Internet then NSCache and DiskCache?

altagir commented 7 years ago

similar question on subject. I am discovering this pod and haven't evaluate it but does the current behavior at least try to fetch in background any update? or to force an update ?