How to set the default cacheKey is the custom cacheKey? #2133
Unanswered
chenqiuliang
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The link to the image returned by the server will have a timestamp parameter.
That is, for the same image, the URIs will be the same, but the URLs will be different,For example:
https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png?timestamp=1692946226
https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png?timestamp=1692946556
Because the default cachekey is encoded using URL, a different URL for the same image will invalidate the caching strategy.
I would like to be able to set a consistent cacheURL policy where images are cached with the URI of the image as the key instead of the URL.
I would like to be able to specify the cacheKey generation strategy for Kingfisher once when the App starts, instead of specifying the cacheKey strategy every time the images are downloaded and loaded.
Beta Was this translation helpful? Give feedback.
All reactions