Post

Replies

Boosts

Views

Activity

Reply to URLSession-URLCache behavior
Hi Matt,Sorry, but I'm not in control of the server to try changing anything server side.You can see in screenshots of the headers for request 1 and 2 - https://github.com/njarecha/URLCacheBug/blob/master/README.md, there are two additional headers `if-none-match` and `if-modified-since` for reqeust 2 which seems to be added based on cachePolicy by URLSession before sending request. The server is just honoring the provided headers and respond with status code `304`. So the question is why these headers are added to reqeust even though second request's HTTPbody is different than first request?Regards,Nimesh
May ’20