I'm loading images to my view with the following code:
private func setUpImage(imageFile: String, cell: ShowCollectionViewCell) {
cell.showImageView.sd_imageIndicator = SDWebImageActivityIndicator.gray
cell.showImageView.sd_setImage(with: URL(string: imageFile), placeholderImage: nil, options: .refreshCached)
}
The problem is, if we replace an image in our server, the image is never refreshed in the app, even if the user closes the app and relaunches it. Only a fresh install gets the new image.
Can SDWebImage detect if the image has changed remotely before using the cached version?
I'm using the latest version of SDWebImage with Swift 4.2 and XCode 11.1.