Skip to content

Commit 3473323

Browse files
gh-action-runnergh-action-runner
gh-action-runner
authored and
gh-action-runner
committed
Squashed 'apollo-ios/' changes from d50a8222..f0b2a850
f0b2a850 fix: Changes `URLRequest` cache policy default (#550) git-subtree-dir: apollo-ios git-subtree-split: f0b2a850945fe070b92a054584e55827fa4a0b15
1 parent 3737df8 commit 3473323

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Apollo/JSONRequest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ open class JSONRequest<Operation: GraphQLOperation>: HTTPRequest<Operation> {
155155
private var requestCachePolicy: URLRequest.CachePolicy {
156156
switch cachePolicy {
157157
case .returnCacheDataElseFetch:
158-
return .returnCacheDataElseLoad
158+
return .useProtocolCachePolicy
159159
case .fetchIgnoringCacheData:
160160
return .reloadIgnoringLocalCacheData
161161
case .fetchIgnoringCacheCompletely:

0 commit comments

Comments
 (0)