Skip to main content
InterviewHubPRO
Section Overview
Q18

Question 18 of 50

Part 2: Combine, Persistence, Security & Networking (11 - 24)

36%
iOS Platform & SwiftUI (50 Qs)•Part 2: Combine, Persistence, Security & Networking (11 - 24)

How does URLSession connection caching and HTTP/3 support work on iOS?

mid LevelMost AskedSecurity & AuthSystem DesignHTTP & REST APIs

In Simple Words:

  • URLSession natively supports HTTP/2 multiplexing and HTTP/3 (QUIC over UDP since iOS 15).
  • Manages connection pools and TLS session resumption automatically.
  • Caching behavior is configured via URLRequest.CachePolicy (useProtocolCachePolicy, returnCacheDataElseLoad) backed by URLCache storing cached responses in RAM and disk.