Improve: disable clash webview cache

This commit is contained in:
yicheng 2019-01-11 16:13:45 +08:00
parent 5bb6c5d023
commit 77c937ec7c
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ class ClashWebViewContoller: NSViewController {
let defaultUrl = "\(ConfigManager.apiUrl)/ui/"
let url = UserDefaults.standard.string(forKey: "webviewUrl") ?? defaultUrl
if let url = URL(string: url) {
webview.load(URLRequest(url: url))
webview.load(URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData, timeoutInterval: 0))
}
}