Slow downloads from S3 Object Storage can be caused by a number of factors including the file size, internet connection, storage endpoint or CDN configuration. These steps will help you find the problem and improve your download speed.
Downloads of larger files take more time than smaller files . This is even more the case for slower internet connections :
You can compare the speed by downloading a smaller file from the same Space.
Check whether the problem is with all files or just large files.
If only big files are slow, check your download method and connection speed.
A slow or unstable internet connection may interrupt the download or the transfer speed.
Try downloading a file from another website to check your internet connection.
Try another network if you can.
Stop any other downloads that might be eating up your available bandwidth.
Try downloading again to see if the issue persists.
If downloads are slow on many websites, it might be your internet connection.
Download performance can be affected by the location of the storage endpoint. Latency might be higher for users far from the storage region.
Verify where your Space is hosted and where the majority of your users are located. If your storage service has multiple regions, you might want to choose a region that is convenient for your audience.
Changing regions can be as simple as copying existing files and updating application settings.
A content delivery network (CDN) can cache files closer to users, reducing the time to retrieve frequently requested content.
If your storage service has a CDN:
Verify that your Space has the CDN enabled.
Verify that your app is using the CDN endpoint to retrieve files.
Check if requested files can be cached.
Try downloading again using the CDN URL.
A CDN can enhance performance for frequently accessed files, but the results will depend on file size, user location, cache settings and network conditions.
Ensure that you are downloading the file from the correct storage/cdn endpoint.
Check the URL is pointing to the correct Space and object key.
Check whether the URL is redirected to some other endpoint.
Ensure that the file can be reached and that the request is not repeatedly failing.
Use a temporary signed URL? Ensure that it is still valid.
Problems with download may be due to an incorrect URL or repeated redirects.
If CDN is enabled, the first request may retrieve a file from the original storage location, and the subsequent requests might use a cached version.
Check the CDN response headers (if available) to see if the file was served from cache.
If a file has been recently edited, make sure that the CDN is serving the latest version. Cache settings affect how quickly files that are updated are made available.
If you are only experiencing slow downloads from your website or application, check how the application is downloading the files.
Check the application if:
Repeatedly downloads the same file.
Downloads unnecessarily go via an application server.
There are limits on the downloads or short timeouts.
Instead of resuming interrupted downloads, restarts them.
If the same file downloads fine via a direct storage or CDN URL but slowly through your application, then the application may need further investigation.
Problem | What to check |
|---|---|
Large files download slowly | File size, connection speed, and transfer method |
Downloads are slow on one network | Internet connection and network restrictions |
Users in distant locations experience slow downloads | Storage region and CDN availability |
First download is slower than subsequent downloads | CDN caching |
Downloads are slow only on your website | Application download settings |
Download links fail or redirect repeatedly | URL, endpoint, and signed URL validity |
If the issue persists, please gather the following information before reaching out to support:
Size of the file affected.
Approximate download speed.
Whether all files are affected or only some of them.
Using a storage URL or CDN URL.
If the problem occurs on multiple networks.
This information can help determine if the issue is related to file, network, storage endpoint, CDN or application.
Note: Enabling a CDN does not necessarily mean faster downloads. Test the download performance before and after you make configuration changes .