Add
- Add an opt-in
.respectCacheControloption andKF.Builder.respectCacheControl()to honor the responseCache-Controlheader when an image is stored.no-storestores nothing and removes an entry cached earlier under the same key;max-ageminus theAgeheader caps the expiration of both cache layers, never beyond the configured one. The response is available asImageLoadingResult.response. The cap applies to the entries stored for that response only; an image processed later from a cached original gets the regular expiration. #2609 #2603 #2507 @feather2222 @buscarini - Mark all
KingfisherWrapperstored-property setters on image views,NSTextAttachment, andPHLivePhotoViewasnonmutating, so aletcopy of the wrapper can configure the view, the same as the button andCPListItemextensions. #2607 #2601 @sereivoanyong
Fix
- Deliver the final completion on
options.callbackQueuewhenwaitForCacheandcacheOriginalImageare used with a processor. The original image disk write reported back on the cache I/O queue, which could run the completion off the callback queue, or drop it when the two store callbacks raced inCacheCallbackCoordinator. A store that reports back synchronously no longer trips an assertion. #2611 @onevcat - Fix the Progressive JPEG demo so that toggling Disable Blur or Disable Fastest Scan downloads the image again with the new options. #2608 #2605 #2604 @suojae
- Fix typos in doc comments. #2602 @suojae