removeCachedResponse(for:)
Removes the cached URL response for a specified data task.
Declaration
func removeCachedResponse(for dataTask: URLSessionDataTask)Parameters
- dataTask:
A task whose URL request’s corresponding cached URL response should be removed. If there is no corresponding cached URL response, no action is taken.