Fix subscribe link request cache bug

subscribe links cannot be updated to the latest content due to the presence of a cache
This commit is contained in:
LeeCenY 2020-06-04 00:32:06 +08:00
parent 1432f696a4
commit d4f24ed9a0

View File

@ -247,7 +247,10 @@ class V2raySubSync: NSObject {
public func dlFromUrl(url: String, subscribe: String) {
logTip(title: "loading from : ", uri: "", informativeText: url + "\n\n")
Alamofire.request(url).responseString { response in
var request = URLRequest(url: URL(string: url)!)
request.cachePolicy = .reloadIgnoringCacheData
Alamofire.request(request).responseString { response in
switch (response.result) {
case .success(_):
if let data = response.result.value {