You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but the autoExtAfterHashedFileName setting just looks to fully break caching in my case. It does happen with some URLs only. Without this option, I have to add a copy of the file after disk cache is ready (because PH API wants a file path with extension).
Reproduce
Note: removing the precondition allows the image to display, so it's not a matter of bad URL.
import SwiftUI
import Kingfisher
@mainstructautoExtAfterHashedFileNameApp:App{init(){ImageCache.default.diskStorage.config.autoExtAfterHashedFileName = true
}
// Works
// let url = URL(string: "https://user-images.githubusercontent.com/1812216/106253726-271ed000-6218-11eb-98e0-c9c681925770.png")!
// Doesn't work
leturl=URL(string:"https://t.furaffinity.net/[email protected]")!
varbody:someScene{WindowGroup{KFImage(url).waitForCache().onSuccess{ result inprecondition(result.cacheType !=.none)}}}}
Other Comment
[Add anything else here]
The text was updated successfully, but these errors were encountered:
Check List
Thanks for considering to open an issue. Before you submit your issue, please confirm these boxes are checked.
Issue Description
What
I wanted to use
DiskStorage.config.autoExtAfterHashedFileName
in order to have a file ready for usage asurl
inbut the
autoExtAfterHashedFileName
setting just looks to fully break caching in my case. It does happen with some URLs only. Without this option, I have to add a copy of the file after disk cache is ready (because PH API wants a file path with extension).Reproduce
Note: removing the precondition allows the image to display, so it's not a matter of bad URL.
Other Comment
[Add anything else here]
The text was updated successfully, but these errors were encountered: