Closed hamzasaleem2397 closed 3 weeks ago
@hamzasaleem2397
https://github.com/user-attachments/assets/5b61b989-1e61-4964-ae8d-335ad353e1a5
TurboImage
set urlCache
to CachePloicy
by default. The max-age in your Firebase Storage Image is 0
, which means it won't be cached. That's why the last image have disk cache. Can you try dataCache
? It will ignore cache-control
Thank you for your time. You are correct—I checked the GitHub URL on Charles, and there is no extra API call. After trying different cache policies, the Firebase image now seems to work fine. However, when I close the app and turn off Wi-Fi, the image does not display, so there may be an issue with fetching from the cache.
@hamzasaleem2397
https://github.com/user-attachments/assets/761095e2-7774-4861-9b3b-f06e8832cb0d
@duguyihou
and I have checked the cache Policy a month ago it wasn't working with firebase url now its seems to be working
@hamzasaleem2397
I see. Thanks for letting me know. It is the image url issue. I will update it later.
https://github.com/user-attachments/assets/8a254739-f733-4afe-bf03-0eaa9998ae70
What's happening?
React Native Turbo Image is not caching Firebase Storage Image when I kill the app the image reload again and it is working perfectly on the other image source like wall haven and some random images from the google. Top 2 images aren't caching they are loading again and again when I turned off the internet it won't load at all until I kill the app with wifi to be turned on
Reproduceable Code
Relevant log output
Device
iPhone 15 - IOS 17.5
TurboImage Version
^1.21.0
Can you reproduce this issue in the TurboImage Example app?
Yes, I can reproduce the same issue in the Example app