[iOS] Clearing UIWebView’s Cache in Swift Posted in : iOS筆記 2018-01-25 URLCache.shared.removeAllCachedResponses() URLCache.shared.diskCapacity = 0 URLCache.shared.memoryCapacity = 0 if let cookies = HTTPCookieStorage.shared.cookies { for cookie in cookies { HTTPCookieStorage.shared.deleteCookie(cookie) } } iOS, Swift