3

what is the difference between get getSignedUrl() method I get on the Node.js vs getDownloadURL() on the SDKs? (I use flutter)

with getSignedUrl() I use in the cloud function, the returned url does not change when the image changes (with the same file name)

but getDownloadURL() on the client side code returns correct and varying urls when the image changes.

  • I've answered your first question. I suggest removing your second question and asking it in a separate post, as the convention on Stack Overflow is to ask a single question per post to make it easier for people to find what they're looking for in web searches. – Doug Stevenson Oct 09 '19 at 19:28
  • Thanks, will post as new question – Vinayakaram Nagarajan Oct 09 '19 at 19:34
  • I have posted here: https://stackoverflow.com/questions/58312192/modified-download-url-firebase-storage are you able to help? Thanks in advance! – Vinayakaram Nagarajan Oct 09 '19 at 21:07

1 Answers1

2

They're mostly functionally equivalent, as they both provide direct download access to the underlying object.

Signed URLs have an explicit expiration that that you provide.

Signed URLs can use some forms of authentication, which you can read about in the documentation.

Signed URLs can also be used for resumable uploads.

Download URLs obtained from the web and mobile client libraries can do none of the above. But they have an access token that you can revoke in the Firebase console, which makes any URLs using that token to stop working (the token string is in the URL itself).

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441