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

Allow OkHttp to cache unsuccessful responses (#549) #551

Merged
merged 2 commits into from
Oct 9, 2020
Merged

Allow OkHttp to cache unsuccessful responses (#549) #551

merged 2 commits into from
Oct 9, 2020

Conversation

clhols
Copy link
Contributor

@clhols clhols commented Oct 8, 2020

Fixes: #549

fetcher.fetch(pool, uri, PixelSize(100, 100), createOptions(context))
}
}
assertTrue(cache.urls().hasNext())
Copy link
Member

@colinrtwhite colinrtwhite Oct 8, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you change this to assert that the url we fetched is equal to the one in the cache?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@colinrtwhite
Copy link
Member

Left one comment, but otherwise LGTM. Thanks for reporting + fixing this!

@colinrtwhite colinrtwhite merged commit 779157a into coil-kt:master Oct 9, 2020
@clhols clhols deleted the clhols/549 branch October 9, 2020 21:19
colinrtwhite pushed a commit that referenced this pull request Oct 5, 2022
* Allow OkHttp to cache unsuccessful responses (#549)

* Allow OkHttp to cache unsuccessful responses (#549)
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.

HTTP 404 responses not cached by OkHttp
2 participants