Can I use CDN with Amazon S3?
Yes, you can use Amazon Simple Storage Service (S3) in the same way as any other origin server. Just use your Amazon S3 domain, e.g., s3.eu-central-1.amazonaws.com, as the Origin Domain for your CDN Static and CDN Video services.
Accept-Ranges HTTP header
For pseudo streaming via CDN Static services and for streaming via CDN Video services please make sure that your Amazon S3 origin responds with the following HTTP header.
Accept-Ranges: bytes
How can I check that my Amazon S3 responds with "Accept-Ranges: bytes" HTTP header?
You can use our curl online tool or command line curl as in the following example.
curl -I https://s3.eu-central-1.amazonaws.com/my-bucket/my-video.mp4
You should see the Accept-Ranges: bytes HTTP header in the curl response.
What if my Amazon S3 does not respond with "Accept-Ranges: bytes" HTTP header?
You can use our CDN Static Push and CDN Video Push services because they come with our CDN storage as origin and our CDN Storage is configured to respond with the "Accept-Ranges: bytes" HTTP header.
Or you can manually add the HTTP respone header in your S3 Management Console.
Adding custom HTTP header in S3 Management Console
- Log in to your S3 Management Console and open your Bucket.
- Right-click on your video file and select Properties.
- In the Metadata section click on the Add more metadata.
- Add your custom HTTP header with Key: Accept-Ranges and Value: bytes.
- Click the Save button.
- That's all.
Now you can use our curl online tool to make sure that your custom HTTP header is present in the HTTP response.