title: Static or fixed URL for Firebase storage images
body: <p>My app is in Ionic 3 and images are stored in Firebase storage. To get the URL in runtime the following method needs to be used.</p>
  
  <pre><code>firebase.storage().ref().child(filePath).getDownloadURL();
  </code></pre>
  
  <p>This call takes a bit of time to get the URL and for the image to load.
  Is there an alternative to use a static URL if I have the file name?
  I have checked that the download URL looks like the following and always follow a pattern.</p>
  
  <pre><code>https://firebasestorage.googleapis.com/v0/b/example.com/o/folderName%fileName.jpeg?alt=media&amp;token=tokenNumber
  </code></pre>
  
  <p>Before the <code>token</code> number, the first part is always the same if we replace the <code>folderName</code> and <code>fileName</code>.</p>
  
  <p>Can we generate the token number and generate the URL faster?</p>
  
  <p><strong>EDIT:</strong>
  An image can be uploaded and the URL can be stored in the database but its not feasible in my case. The app contains social network flow where each user will have a display pic URL and will be able to see fiend’s display pic in a list view. This will cause a lot of read if URL is to be fetched from each user's data.</p>