Skip to content

Commit

Permalink
fix: Changes URLRequest cache policy default (#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
calvincestari authored and gh-action-runner committed Dec 6, 2024
1 parent c694236 commit b5a267a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apollo-ios/Sources/Apollo/JSONRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ open class JSONRequest<Operation: GraphQLOperation>: HTTPRequest<Operation> {
private var requestCachePolicy: URLRequest.CachePolicy {
switch cachePolicy {
case .returnCacheDataElseFetch:
return .returnCacheDataElseLoad
return .useProtocolCachePolicy
case .fetchIgnoringCacheData:
return .reloadIgnoringLocalCacheData
case .fetchIgnoringCacheCompletely:
Expand Down

0 comments on commit b5a267a

Please sign in to comment.