Skip to content

Commit 915eff7

Browse files
authored
fix: turn off caching in URLSessionHTTPClient (#997)
1 parent f4fcab3 commit 915eff7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/ClientRuntime/Networking/Http/URLSession/URLSessionConfiguration+HTTPClientConfiguration.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ extension URLSessionConfiguration {
1818
config.httpCookieAcceptPolicy = .never
1919
config.httpCookieStorage = nil
2020
config.httpMaximumConnectionsPerHost = httpClientConfiguration.maxConnections
21+
config.urlCache = nil
22+
config.requestCachePolicy = .reloadIgnoringLocalCacheData
2123
return config
2224
}
2325
}

0 commit comments

Comments
 (0)