Do you wonder what the eviction strategy of URLCache is on iOS? The article from Nikita Zhuk provides some insights

https://www.zhuk.fi/subclassing-urlcache/

#iosdev

A path of pain with URLCache eviction and subclassing

URLCache class implements the caching of responses to URL load requests, by mapping NSURLRequest objects to CachedURLResponse objects. It provides a composite in-memory and on-disk cache, and lets you manipulate the sizes of both the in-memory and on-disk portions. You can also control the path where cache data is persistently

Zhuk Notes

@MarcoEidinger

Not the outcome I was expecting!

@mzarra

@MarcoEidinger I really hope I retire before Quinn does.