![]() ![]() Also stack trace doesn't provide much information. Is this an expected behavior? If yes, why?Įxperiencing alot of crash in libcorecrypto.dylib. Is this a bug in URLCache that request headers are not matched while returning the response? Print("cachedResponse: \(cachedResponse?.response)") of the first request even though the second request has different header value. ![]() Check the URL cache for second request and it returns the response ![]() tValue("newvalue", forHTTPHeaderField: "CustomField") Create second request to the same url but with different value of custom header field. Print("data: \(String(describing: String(data: data, encoding. Let (data, response) = try await (for: request) tValue("myvalue", forHTTPHeaderField: "CustomField") Here is a code with comment explaining the behavior. I would like to understand this URLCache behavior for two different requests to the same end point but with a different header value. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |