Does cache reset authorization

I am trying to implement Retrofit in my application, and everything that works is fine, except that requests are not cached.

So, I have a:

@GET("/mobile/api.php")
public void getPromos(
       @QueryMap Map<String, String> options, 
       Callback<ResultPromotions> callBack);

.....

 requestFacade.addHeader("Authorization", authorizationValue);
 requestFacade.addHeader("Cache-Control", "public, max-age=600");

....

 RestAdapter adapter = new RestAdapter.Builder()
            .setRequestInterceptor(requestInterceptor)
            .setClient(new OkClient(okHttpClient))
            .setEndpoint(ENDPOINT)
            .setConverter(new GsonConverter(gson))
            .setLogLevel(RestAdapter.LogLevel.FULL)
            .build();

So my question is this: does the dose modify the caching of authorization requests? Or is there no way to cache this type of request?

+4
source share
1 answer

The upgrade itself does not do any caching.

, , HTTP HTTP.

OkHttp HTTP Square, . Cache-Control, , , .

+4

All Articles