From 3473323e56c3793aec802e26052d2d8e2449bf91 Mon Sep 17 00:00:00 2001 From: gh-action-runner Date: Fri, 6 Dec 2024 21:47:09 +0000 Subject: [PATCH] Squashed 'apollo-ios/' changes from d50a8222..f0b2a850 f0b2a850 fix: Changes `URLRequest` cache policy default (apollographql/apollo-ios-dev#550) git-subtree-dir: apollo-ios git-subtree-split: f0b2a850945fe070b92a054584e55827fa4a0b15 --- Sources/Apollo/JSONRequest.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Apollo/JSONRequest.swift b/Sources/Apollo/JSONRequest.swift index 5e51727a4..4e6eea646 100644 --- a/Sources/Apollo/JSONRequest.swift +++ b/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: