How to clear cached data stored by URLSession/URLConfiguration?
问题 I am using the code below to set the caching policy of my URLSession via URLConfiguration. if appDelegateObj.configuration == nil { appDelegateObj.configuration = URLSessionConfiguration.default } if self.apiType == ServerRequest.API_TYPES_NAME.API1 { if appDelegateObj.forceReload == true { appDelegateObj.configuration?.urlCache = nil appDelegateObj.configuration?.requestCachePolicy = .reloadIgnoringLocalCacheData }else{ appDelegateObj.configuration?.requestCachePolicy =