mirror of
https://github.com/yanue/V2rayU.git
synced 2025-06-27 05:30:09 +00:00
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:
parent
1432f696a4
commit
d4f24ed9a0
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user