title: How to shorten Firebase storage download retrying period on Network Error
body: <p>I have basic working code for downloading file from Firebase storage. </p>
  
  <pre><code>String key = "gs://.../test.jpg";
  File file = new File(getCacheDir() + File.separator + "test.jpg");
  
  FirebaseStorage storage = FirebaseStorage.getInstance();
  StorageReference gsRef = storage.getReferenceFromUrl(key);
  
  gsRef.getFile(file)
  .addOnSuccessListener(new OnSuccessListener&lt;FileDownloadTask.TaskSnapshot&gt;()
  {
      @Override
      public void onSuccess(FileDownloadTask.TaskSnapshot taskSnapshot)
      {
          Log.d("APP", "onSuccess");
      }
  }).addOnFailureListener(new OnFailureListener()
  {
      @Override
      public void onFailure(@NonNull Exception exception)
      {
          Log.d("APP", "onFailure: ", exception);
      }
  });
  </code></pre>
  
  <p>However, if above code is executed while device is not connected to Internet it takes almost 10 minutes before <code>onFailure</code> event is finally triggered. In the meantime log is filling up with repeated retries:</p>
  
  <pre><code>02-27 21:41:07.203 12954-13288/com.example.test E/StorageUtil: error getting token java.util.concurrent.ExecutionException: com.google.firebase.FirebaseException: An internal error has occurred. [ &lt;&lt;Network Error&gt;&gt; ]
  02-27 21:41:08.244 12954-13288/com.example.test W/ExponenentialBackoff: network unavailable, sleeping.
  02-27 21:41:08.294 12954-13288/com.example.test E/StorageUtil: error getting token java.util.concurrent.ExecutionException: com.google.firebase.FirebaseException: An internal error has occurred. [ &lt;&lt;Network Error&gt;&gt; ]
  02-27 21:41:09.405 12954-13288/com.example.test W/ExponenentialBackoff: network unavailable, sleeping.
  02-27 21:41:09.485 12954-13288/com.example.test E/StorageUtil: error getting token java.util.concurrent.ExecutionException: com.google.firebase.FirebaseException: An internal error has occurred. [ &lt;&lt;Network Error&gt;&gt; ]
  </code></pre>
  
  <p>Is there a way I can shorten (customize) retry period and trigger <code>onFailure</code> event sooner?  </p>