Kingfisher icon indicating copy to clipboard operation
Kingfisher copied to clipboard

Change in URL query parameter not updating the image.

Open shamiul110107 opened this issue 2 years ago • 1 comments

Issue Description

I have loaded the image from an image URL. It works fine when the image changes in the remote server. But the issue happens when I have query parameters in the new URL. In that case, the new image is not showing though I have changed it. I don't know if Kingfisher is discarding the query parameters. But If I re-run the app the new image is showing. Here is the URL format, https://cdn.example.com/uploads/movie/3866/thumb_3866.jpg?v=202312061100

What

shamiul110107 avatar Dec 18 '23 02:12 shamiul110107

I am not 100% sure your case, but by default, Kingfisher uses the whole URL string as the cache key.

So, it means:

https://cdn.example.com/uploads/movie/3866/thumb_3866.jpg?v=202312061100

https://cdn.example.com/uploads/movie/3866/thumb_3866.jpg?v=1234567

means two different images in Kingfisher.

I don't know if Kingfisher is discarding the query parameters. But If I re-run the app the new image is showing.

I would suggest you check if you actually changed your model and used that new URL to ask Kingfisher to set the image view again.

onevcat avatar Dec 18 '23 08:12 onevcat