lorenzofiamingo / swiftui-cached-async-image

CachedAsyncImage is the simplest way to add cache to your AsyncImage.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Redirect Count

mardegan-rawfish opened this issue · comments

Hi,

we noticed that the caching mechanism did not work in our infrastructure. The downloaded image was not saved in cache because

if metrics.redirectCount > 0, let lastResponse = metrics.transactionMetrics.last?.response

return false, being metrics.redirectCount == 0.

There is any particular reason to check the redirectCount?

Thanks in advance!