retrofit2 - Android OKHttp and Retrofit return 304 error -


i'm develop android application using okhttp , retrofit send request skyscanner api.

but sometime got 304 response , response have no body content. can't parse body content object , that's why listview show nothing.

can me avoid 304 error.

304 not error. 304 refers redirect, , responsibility of client handle it.

http://www.checkupdown.com/status/e304.html

you doing request on document has not changed, , should depend on cache handle you.


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -