From b5a267a7953624670d288dcac1fc5bd19859b932 Mon Sep 17 00:00:00 2001 From: Calvin Cestari <146856+calvincestari@users.noreply.github.com> Date: Fri, 6 Dec 2024 13:46:36 -0800 Subject: [PATCH] fix: Changes `URLRequest` cache policy default (apollographql/apollo-ios-dev#550) --- apollo-ios/Sources/Apollo/JSONRequest.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apollo-ios/Sources/Apollo/JSONRequest.swift b/apollo-ios/Sources/Apollo/JSONRequest.swift index 5e51727a4..4e6eea646 100644 --- a/apollo-ios/Sources/Apollo/JSONRequest.swift +++ b/apollo-ios/Sources/Apollo/JSONRequest.swift @@ -155,7 +155,7 @@ open class JSONRequest: HTTPRequest { private var requestCachePolicy: URLRequest.CachePolicy { switch cachePolicy { case .returnCacheDataElseFetch: - return .returnCacheDataElseLoad + return .useProtocolCachePolicy case .fetchIgnoringCacheData: return .reloadIgnoringLocalCacheData case .fetchIgnoringCacheCompletely: