Is 404 counted as an error?
livid opened this issue · comments
It seems after I switched from AsyncImage
to your CachedAsyncImage
, 404 is no longer an error. Thus when the code tried to load an URL that returned 404, the code would never reach phase.error
, thus a placeholder is always showing.
Fixing this right now.
During diagnosis, I also noticed if the remote URL has cacheable HTTP header settings:
- Cache-Control has positive max-age
- No Set-Cookie headers
Then AsyncImage will not send duplicate requests to the server.
Check the new release.
I tried to emulate the original Error as much as possible.