Post

Replies

Boosts

Views

Activity

Reply to Using URLCache subclasses with URLSession
I'm facing a similar issue as posted here. I have been monitoring my currentDiskUsage on URLCache. I've noticed that even with just a single url getting cached that the disk utilization just continues to increase. Am i don't something wrong. I was under the impression that if you cache the same url with same headers it should overwrite the last entry. I'm not seeing that. The disk usage just climbs and climbs. It is a slow ascent but i wouldn't expect this. Is this expected behavior? That the URLCache continues to grow at all times. can we not have 5 endpoints in the app and then those 5 endpoints store their responses and don't take up anymore space. future responses just overwrite the past responses. What i'm witnessing is that the disk growth behaves almost like a memory leak. Any input would be appreciated.
Jun ’24