stefano
stefano8mo ago

File bandwidth

https://www.convex.dev/pricing Hi, will the following count towards the "File bandwidth"? a visit (or a GET from the application) to the page where a document is served (https://subdomain.convex.cloud/api/storage/fileid)
Plans and Pricing
The backend application platform with everything you need to build your product.
2 Replies
lee
lee8mo ago
Yes, if you fetch the file that counts as bandwidth. Note a client can't just construct the url because the url doesn't actually contain the file id. If you want to prevent clients from using file bandwidth, you can be careful to only give the url (from storage.getUrl) to authorized clients. Or you can fetch the file from an HTTP action (using storage.get) that has authentication or rate limiting.
stefano
stefanoOP8mo ago
related noob question, I am using <embed> HTML element to display a PDF document stored on Convex. As you can see from the screenshot, when it loads it says that "200 OK (from disk cache)". Does this mean that the fetch is actually cached?
No description

Did you find this page helpful?