java - Caching Data with OKHttp -



java - Caching Data with OKHttp -

i'm trying cache info okhttp's native cache; problem don't have command on server side data, , response header cache-control coming "no-cache" value.

is there anyway intercept request add together in header cache info that's coming using okhttp? (i'd cache specific requests if possible).

thank you! best regards, christopher steven

okhttp doesn't offer mechanism defeat cache-control: no-cache. okhttp end validating response server, if server says stored response still response body won't need retransmitted.

we've got feature request outstanding wants this, though it's hard because may mean single request yields multiple responses.

java caching okhttp

Comments

Popular posts from this blog

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -