Contents

CachedURLResponse

A cached response to a URL request.

Declaration

class CachedURLResponse

Mentioned in

Overview

A CachedURLResponse object provides the server’s response metadata in the form of a URLResponse object, along with an NSData object containing the actual cached content data. Its storage policy determines whether the response should be cached on disk, in memory, or not at all.

Cached responses also contain a user info dictionary where you can store app-specific information about the cached item.

The URLCache class stores and retrieves instances of CachedURLResponse.

Topics

Creating a cached URL response

Getting cached URL response properties

Setting cache storage policies

Initializers

See Also

Cache behavior