Skip to content

Handling separated flows from the network layer #8

Description

@4gus71n

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions