kfiroo / react-native-cached-image

CachedImage component for react-native
MIT License
940 stars 468 forks source link

image does not refresh when image changed #112

Open aalkhulaifi605 opened 6 years ago

aalkhulaifi605 commented 6 years ago

hi .

I am using CachedImage and i am setting ttl={10} which is 10 seconds . First it works correctly but when I change the image from the server ( Same url ) and reopen the app after 10 seconds the app does not get the new image and still shows the old image .

I would really appreciate a little help and thanks .

Draccan commented 6 years ago

Hi,

If you're changing some parameters in URL remember to set "useQueryParamsInCacheKey = {true}"