General topic questions
URLCache and HTTP Caching
MediumOccasional
Free section · general topics & algorithms
How do you control HTTP caching on iOS?
Reveal model answer
URLCache with memory/disk capacity; Cache-Control/ETag from server; request cachePolicy (.useProtocolCachePolicy, .reloadIgnoringLocalCacheData). Don’t cache sensitive authenticated responses carelessly.