Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setImage reflects URLRequest.CachePolicy #435

Closed

Conversation

kyasu8917
Copy link

@kyasu8917 kyasu8917 commented Dec 4, 2020

Issue Link πŸ”—

#302

Goals ⚽

We can force setImage to get image from origin.

Implementation Details 🚧

[before]
If we set CachePolicy to URLRequest when calling setImage(withUrlRequest:), setImage always don't get from origin, but from imageCache.

[after]
setImage reflect CachePolicy setting.
(.reloadIgnoringLocalCacheData -> setImage don't use imageCache, always get origin. )

Conditions to refer to ImageCache match ImageDownloader.download.

Testing Details πŸ”

add no testing

@kyasu8917 kyasu8917 closed this May 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants