Skip to content

Commit

Permalink
Fix subscribe link request cache bug
Browse files Browse the repository at this point in the history
subscribe links cannot be updated to the latest content due to the presence of a cache
  • Loading branch information
LeeCenY committed Jun 3, 2020
1 parent 1432f69 commit d4f24ed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion V2rayU/V2raySubscribe.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d4f24ed

Please sign in to comment.