public static boolean isCustomNetworkUri(@Nullable Uri uri) {
    if (CUSTOM_NETWORK_SCHEMES == null || uri == null) {
      return false;
    }
    for (String scheme : CUSTOM_NETWORK_SCHEMES) {
      if (scheme.equals(uri.getScheme())) {
        return true;
      }
    }
    return false;
  }
Disables disk cache for this request, regardless where the image will come from.
imagepipeline/src/main/java/com/facebook/imagepipeline/request/ImageRequestBuilder.java