NSURLCache
NSURLCache is a caching mechanism provided by the Foundation framework that stores responses to URL load requests. It uses a two-tier storage system, combining memory cache for fast access with a disk cache for persistence, governed by configurable memory and disk capacities. Cached responses help reduce network traffic and speed up repeated requests by serving data locally when appropriate.
The cache stores data as NSCachedURLResponse objects, which pair an NSURLResponse with the corresponding data. Core
Key API methods include cachedResponseForRequest:, storeCachedResponse:forRequest:, removeCachedResponseForRequest:, and removeAllCachedResponses. In Objective-C these are negative- or positive-formed
Usage and behavior: The URL loading system consults the URL cache for appropriate requests, respecting cache-control
Limitations: The cache stores only cacheable responses and is not a general-purpose data store. It works with