From ca1c16b7d9bfc18e8b052898365c54fd80a48ca1 Mon Sep 17 00:00:00 2001 From: Denis Ovchar <101550448+HyperfocusDisordered@users.noreply.github.com> Date: Fri, 16 Aug 2024 17:11:04 +0200 Subject: [PATCH] .storeAll now stores processed images for locals too, as it should be --- Sources/Nuke/Tasks/TaskLoadImage.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Sources/Nuke/Tasks/TaskLoadImage.swift b/Sources/Nuke/Tasks/TaskLoadImage.swift index 2f4b6b7e..a143b8ad 100644 --- a/Sources/Nuke/Tasks/TaskLoadImage.swift +++ b/Sources/Nuke/Tasks/TaskLoadImage.swift @@ -174,8 +174,7 @@ final class TaskLoadImage: AsyncPipelineTask, @unchecked Sendable private func shouldStoreResponseInDataCache(_ response: ImageResponse) -> Bool { guard !response.container.isPreview, - !(response.cacheType == .disk), - !(request.url?.isLocalResource ?? false) else { + !(response.cacheType == .disk) else { return false } let isProcessed = !request.processors.isEmpty || request.thumbnail != nil