title: Caching issue in Android Retrofit
body: <p>I'm trying to get caching to work with Retrofit with no luck, and I'm not quite sure what I'm doing wrong.</p>
  
  <p>Using:</p>
  
  <p><strong>build.gradle</strong></p>
  
  <pre><code>compile 'com.squareup.okhttp:okhttp:1.5.+'
  compile 'com.squareup.retrofit:retrofit:1.5.+'
  </code></pre>
  
  <p><strong>Example Call</strong></p>
  
  <pre><code>@Headers("Cache-Control: public, max-age=640000, s-maxage=640000 , max-stale=10000000")
  @GET("/articles/{article}")
  public void getArticle(
      @Path("article") String id,
      Callback&lt;Article&gt; cb
  );
  </code></pre>
  
  <p><strong>Building the API</strong></p>
  
  <pre><code>File cacheDir = context.getCacheDir();
  cache = null;
  try {
      cache = new HttpResponseCache(cacheDir, 10 * 1024 * 1024);
  } catch (IOException e) {
      e.printStackTrace();
  }
  
  OkHttpClient okHttpClient = new OkHttpClient();
  okHttpClient.setResponseCache(cache);
  OkClient okClient = new OkClient(okHttpClient);
  
  api = new RestAdapter.Builder()
     .setEndpoint(TestAPI.BASE_URL)
     .setRequestInterceptor( ... only adding path params ... )
     .setClient(okClient)
     .build()
     .create(TestAPI.class);
  </code></pre>
  
  <p>The call works, the only issue is actually getting it to cache... I'm checking against  cache.getHitCount() after I make my calls to check if there was anything that cached, and it always turns up as 0.</p>