DylanVann / react-native-fast-image

🚩 FastImage, performant React Native image component.
MIT License
8.1k stars 1.48k forks source link

Caching wrong keys (urls) on redirects #904

Open Stevemoretz opened 2 years ago

Stevemoretz commented 2 years ago

Describe the bug

Technically the url returned from the redirect is supposed to be cached not the first url.

To Reproduce

eg :

http://test.test/this_will_redirect_to_another_url -> http://test.test/this_is_the_other_url?bust=123456

Now if we change the bust parameter, it will still load the previous image instead of the new one.

Expected behavior The last returned url from the redirects is supposed to get cached not the first url causing the first redirect. eg :

http://test.test/this_is_the_other_url?bust=123456

not

http://test.test/this_will_redirect_to_another_url

Dependency versions