mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-17 18:53:40 +01:00
- Fix: AnisetteServers: refresh server request shouldn't use local cache to get proper updates
This commit is contained in:
@@ -38,7 +38,12 @@ class AnisetteViewModel: ObservableObject {
|
|||||||
|
|
||||||
func getListOfServers() {
|
func getListOfServers() {
|
||||||
guard let url = URL(string: source) else { return }
|
guard let url = URL(string: source) else { return }
|
||||||
URLSession.shared.dataTask(with: url) { data, response, error in
|
|
||||||
|
// DO NOT use local cache when fetching anisette servers
|
||||||
|
var request = URLRequest(url: url)
|
||||||
|
request.cachePolicy = .reloadIgnoringLocalCacheData
|
||||||
|
|
||||||
|
URLSession.shared.dataTask(with: request) { data, response, error in
|
||||||
if let error = error {
|
if let error = error {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user