react-native-fast-image
react-native-fast-image copied to clipboard
Caching wrong keys (urls) on redirects
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
- React Native version: 0.64.3
- React version: 17.0.1
- React Native Fast Image version: ^8.5.11