react-native-fast-image icon indicating copy to clipboard operation
react-native-fast-image copied to clipboard

Caching wrong keys (urls) on redirects

Open Stevemoretz opened this issue 2 years ago • 0 comments

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

Stevemoretz avatar Jun 10 '22 07:06 Stevemoretz