Closed jamesholcomb closed 3 weeks ago
@jamesholcomb, thanks for the report. I wonder if the URLSession cache also needs to be cleared. I have some bandwidth to check this out & the onSuccess callback bug this weekend.
@jamesholcomb I also added a function to invalidate the URLSession cache on latest, lmk if this is still an issue.
"@candlefinance/faster-image": "1.6.2"
on iOS 17 (both device and simulator), calling
clearCache()
seems to only partially work. I don't see a pattern, but some (most?) of the sources do indeed reload from network. The returned promise always resolves.In my scenario, I cache static images from an API whose requests look like:
https://api.mapbox.com/styles/v1/mapbox/outdoors-v11/static/pin-s-star+FF0000(-95.98435239999999,36.1040077)/-95.98435239999999,36.1040077,15.5/393x130@2x?access_token=pk.eyJ1xxxxxxx&attribution=false&logo=true
is it possible to return information about the network request (or cache hit) in the
onSuccess
handler? That might help diagnose caching issues.