Basically I have images changing on the web server constantly but the URLs never change.
I notice that Alamofire has an interesting way of caching and I looked through the documentation to see what can be used to clear it.
I've found
let _url = NSURL(string: url)
let URLRequest = NSURLRequest(URL: _url!)
imageDownloader.imageCache?.removeImageForRequest(URLRequest, withAdditionalIdentifier: nil)
imageDownloader.sessionManager.session.configuration.URLCache?.removeCachedResponseForRequest(URLRequest)
But I still find that the image used before is still showing up even though the image on the server has definitely changed.
The main thing I am doing within my TableViewCells to load the image is this....
cell.avatar.af_setImageWithURL(url!, placeholderImage: ....)
So my hunch is that there is some caching done that I am still not clearing.