SDWebImage
does some caching by default, so it would be better to use a new URL if the image changes. So, for instance, if you have control over the URL and can change it every time the image has changed, you could do that.
If that's not the case, try using SDWebImageRefreshCached
in the options
field in order to respect HTTP cache control headers, like this:
[imageView setImageWithURL:[NSURL URLWithString:@"https://graph.facebook.com/olivier.poitrey/picture"]
placeholderImage:[UIImage imageNamed:@"avatar-placeholder.png"]
options:SDWebImageRefreshCached];
See more here
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…