Why does vercel put function for @vercel/blob adds a suffix

Like as you can see in docs by default addRandomSuffix is true, what is the purpose of this? I will just end up with the same file filling my storage for no good reason. And if I do actually set it to false because of browser cache reset being one year you can’t really change it on the fly.

EDIT: I guess the KV store is better.

Hey @mordechaihadad. I’m glad you found a solution that works for your needs!

With Vercel Blob, addRandomSuffix is true by default to automatically give a unique and difficult-to-guess id to the publicly accessible URL. You can disable that by explicitly setting addRandomSuffix to false.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Hey, @mordechaihadad! I know it’s been a while since you posted this and found that KV store better for your needs. But I wanted to also highlight some upcoming changes to the Vercel Blob SDK, in case it’s relevant for you: