Gravatar-SDK-iOS icon indicating copy to clipboard operation
Gravatar-SDK-iOS copied to clipboard

ImageDownloadService: Investigate other caching behaviors

Open pinarol opened this issue 1 year ago • 1 comments

Gravatar supports some cache control headers. Let's investigate and experiment on different cache policies that are defined in Apple's high level networking frameworks and see how we can offer other caching behaviors.

pinarol avatar Sep 11 '24 09:09 pinarol

I'd also suggest creating a custom URLCache instance so that the framework doesn't store images in the default system cache that has a very limited capacity on iOS.

kean avatar Sep 11 '24 13:09 kean

We have investigated this. And it turns out that Gravatar backend doesn't support cache control headers, they are ignored even if we send them. We need to address this at the backend so I'll close this issue as part of a backlog cleanup.

pinarol avatar Apr 08 '25 14:04 pinarol

Creating a custom URLCache instance could be helpful for the capacity so we'll evaluate how this fits into our roadmap.

pinarol avatar Apr 08 '25 14:04 pinarol