1
1
mirror of https://github.com/kean/Nuke.git synced 2024-11-28 12:04:01 +03:00
This commit is contained in:
Denis Ovchar 2024-10-07 14:02:13 -04:00 committed by GitHub
commit 99e8e5c997
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -174,8 +174,7 @@ final class TaskLoadImage: AsyncPipelineTask<ImageResponse>, @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