Skip to content

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

Merged
colinrtwhite merged 2 commits into
coil-kt:masterfrom
clhols:clhols/549
Oct 9, 2020
Merged

Allow OkHttp to cache unsuccessful responses (#549)#551
colinrtwhite merged 2 commits into
coil-kt:masterfrom
clhols:clhols/549

Conversation

@clhols
Copy link
Copy Markdown
Contributor

@clhols clhols commented Oct 8, 2020

Fixes: #549

fetcher.fetch(pool, uri, PixelSize(100, 100), createOptions(context))
}
}
assertTrue(cache.urls().hasNext())
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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