rxjava-multiple-sources-sample icon indicating copy to clipboard operation
rxjava-multiple-sources-sample copied to clipboard

Handling separated flows from the network layer

Open 4gus71n opened this issue 7 years ago • 0 comments

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!

4gus71n avatar May 16 '17 17:05 4gus71n