title: OkHttp exclude APIs from caching
body: <p>I'm using Retrofit and OkHttp client for making network calls. My server supports Etag caching and I have added cache to
  <code>okHttp</code> client . There are some APIs which I don't want to cache</p>
  
  <p>This is my <code>okHttpClient</code> config</p>
  
  <pre><code>    OkHttpClient okHttpClient(Context context,
                                           HttpLoggingInterceptor loggingInterceptor,Cache okHttpCache) {
              final OkHttpClient.Builder builder = new OkHttpClient.Builder()
                      .addInterceptor(loggingInterceptor)
                      .cache(okHttpCache)
              return builder.build();
          }
  
  
      Cache cache(Context context) {
      return new Cache(new File(context.getCacheDir(), "cache"),10 * 1024 * 1024);
       }
  </code></pre>
  
  <p>Can I ignore some of the APIs from caching? </p>