it’s like the problem is with the Glide library itself, I found a trick that can fix it, just put a random number after the URL of your image as a request, as an example code below, this solved my problem, I hope it helps you too
Random random = new Random();
int randomInt = random.nextInt();
Glide.with(context)
.applyDefaultRequestOptions(new RequestOptions()
.circleCrop().diskCacheStrategy(DiskCacheStrategy.NONE))
.load(ConstantVars.BaseUrl + userModel.getAvatarURL() + "?" + randomInt)
.apply(new RequestOptions().error(R.drawable.himart_place_holder))
.into(imageViewProfile);
this will cause Glide to reload the image every time you request, as if there is no read cache.
source
share