Instance Method

removeAllCachedResponses()

Clears the receiver’s cache, removing all stored cached URL responses.

Declaration

func removeAllCachedResponses()

See Also

Removing Cached Objects

func removeCachedResponse(for: URLRequest)

Removes the cached URL response for a specified URL request.

func removeCachedResponse(for: URLSessionDataTask)

Removes the cached URL response for a specified data task.

func removeCachedResponses(since: Date)

Clears the given cache of any cached responses since the provided date.