Closed pavinthan closed 6 years ago
I am having the same issue where if the user updated his image on the backend , the app won't load the new image and will always load from cache . Setting it to mutable will fix this issue but the image will not be displayed when the user is offline and the app will always request the image .
Does the lib auto delete cache after their max-age is expiated ? My backend does return cache control with max-age but not sure if the lib will auto delete .
To your image URI, try adding the user id in query parameter.
Example: uri: `${profileImage()}?userId=${user_id}`,
This will make the URLs unique to each user and would help resolve your issue.
@Nitroman605 @mayur-novus thanks for your advice, I used /api/profile/images/cropped?uuid={UUID}
to fix the issue.
Thanks again.
CustomCachedImage always show first user image Image url like
{DOMAIN_NAME}/api/profile/images/cropped