Add
- Add
asyncCacheTypeCheck(_:)andforcedCacheFileExtension(_:)toKFOptionSetter, and moveonlyLoadFirstFrame(_:)there fromKF.Builder, so bothKF.BuilderandKFImagecan set these options without theoptionsarray. #2614 @shubhransh-gupta
Fix
- {"Make a
nilreturned by anImageDownloadRequestModifierinterrupt the download with.requestError(reason"=>".emptyRequest)again for downloads throughKingfisherManager, such askf.setImage,KFImageandImagePrefetcher. Since 8.11.0, these downloads ignored theniland sent the original request. #2623 @unaltolga"} - Keep
cancel()and priority changes on aDownloadTaskthat is returned before the real task starts, for example with.asyncCacheTypeCheckor anAsyncImageDownloadRequestModifier. The calls are applied when the real task is linked, so aKFImagethat disappears quickly no longer finishes its download. #2619 #2618 @shubhransh-gupta - Store the original image under the forced cache file extension when
.cacheOriginalImageand.forcedCacheFileExtension(_:)are used with a processor, so the original is found again and not downloaded again. #2612 @unaltolga - Make
ImagePrefetcheruse the forced cache file extension when it checks the disk cache, so an image that is already cached is not downloaded again. #2617 @shubhransh-gupta - Call the completion handler of
cleanExpiredDiskCache(completion:)when cleaning fails, so the asynccleanExpiredDiskCache()andcleanExpiredCache()return. #2621 @unaltolga - Fix code examples in the DocC articles that did not compile, including the
CacheSerializer,ImageProcessor,AsyncImageDownloadRequestModifierandAuthenticationChallengeResponsibleexamples. #2613 #2616 @ZainnQureshii @shubhransh-gupta