Contents

removeCachedResponse(for:)

Removes the cached URL response for a specified URL request.

Declaration

func removeCachedResponse(for request: URLRequest)

Parameters

  • request:

    The URL request whose cached URL response should be removed. If there is no corresponding cached URL response, no action is taken.

Mentioned in

Discussion

If you override this method, you should also override removeCachedResponse(for:).

See Also

Removing cached objects