Skip to content

Commit

Permalink
Changes URLRequest cache policy default
Browse files Browse the repository at this point in the history
  • Loading branch information
calvincestari committed Dec 4, 2024
1 parent bdf0be9 commit e9d5700
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 e9d5700

Please sign in to comment.