8.15.0
8.15.0 - Control Freak
Added 6
- Add an opt-in .respectCacheControl option and KF.Builder.respectCacheControl() to honor the response Cache-Control header when an image is stored
- no-store stores nothing and removes an entry cached earlier under the same key when respectCacheControl is enabled
- max-age minus the Age header caps the expiration of both cache layers, never beyond the configured one, when respectCacheControl is enabled
- The response is available as ImageLoadingResult.response
- The Cache-Control expiration cap applies only to the entries stored for that response; an image processed later from a cached original gets the regular expiration
- Mark all KingfisherWrapper stored-property setters on image views, NSTextAttachment, and PHLivePhotoView as nonmutating, so a let copy of the wrapper can configure the view
Fixed 5
- Deliver the final completion on options.callbackQueue when waitForCache and cacheOriginalImage are used with a processor
- The original image disk write no longer reports 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 in CacheCallbackCoordinator
- A store that reports back synchronously no longer trips an assertion
- Progressive JPEG demo downloads the image again with the new options when toggling Disable Blur or Disable Fastest Scan
- Fix typos in doc comments
From Kingfisher
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