rxjava-multiple-sources-sample
rxjava-multiple-sources-sample copied to clipboard
Handling separated flows from the network layer
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!