Alamofire / AlamofireImage

AlamofireImage is an image component library for Alamofire
MIT License
3.99k stars 523 forks source link

setImage reflects URLRequest.CachePolicy #435

Closed kyasu8917 closed 3 years ago

kyasu8917 commented 3 years ago

Issue Link :link:

302

Goals :soccer:

We can force setImage to get image from origin.

Implementation Details :construction:

[before] If we set CachePolicy to URLRequest when calling setImage(withUrlRequest:), setImage always don't get from origin, but from imageCache.

[after] setImage reflect CachePolicy setting. (.reloadIgnoringLocalCacheData -> setImage don't use imageCache, always get origin. )

Conditions to refer to ImageCache match ImageDownloader.download.

Testing Details :mag:

add no testing