dte@mastodon.online on Twitter: "Swift's URLCache is amazing! With it, I was able to implement a data fetching strategy similar to useSWR, returning cached data while the cache is revalidated. Source/alt for image:
Downloading and Caching images in SwiftUI - SwiftLee
SwiftUI Image Cache | URLCache Swift - YouTube
How To Change URLSession Cache Size - Smash Swift
swift - What is the difference between URLCache.cachedResponse(for:) and URLCache.getCachedResponse(for:completionHandler:) ? - Stack Overflow
swift - What is the difference between URLCache.cachedResponse(for:) and URLCache.getCachedResponse(for:completionHandler:) ? - Stack Overflow
URLCache
image.gif
Better Secure Than Sorry | Tips To Secure An iOS App
Caching File Downloads with URLCache in Swift | PSPDFKit
URLResponse cache can exist regardless of cachePolicy! | by Thongchai Kolyutsakul | SwiftBlade | Medium