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

Handling separated flows from the network layer #8

Open
4gus71n opened this issue May 16, 2017 · 0 comments
Open

Handling separated flows from the network layer #8

4gus71n opened this issue May 16, 2017 · 0 comments

Comments

@4gus71n
Copy link

4gus71n commented May 16, 2017

Sorry if this is a little offtopic with the Repo contents. I'm coding an Android App, and I'm using the same pattern that you're using here to get stuff from server-side/cache. The issue is that the server-side works with etags, so It can return 304 (Not Modified) or 200 (Success). I want to save the response in the cache only if the request response is 200, but no if the request response is 304, since It's the same data and It's a waste of time. I posted a very complete example here:

http://stackoverflow.com/questions/43960203/handling-different-flows-with-rxjava-and-retrofit/

Could you give me some advice about which is the best way to handle this?

Thanks!

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

No branches or pull requests

1 participant