We accelerate websites

15 days free trial Sign up

Media Acceleration Stream to the world

15 days free trial Sign up

Extensive Network Excellent world coverage

Using CDN with Amazon S3

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 of your CDN Static/CDN Video services.

Accept-Ranges HTTP header

For pseudo streaming via CDN Static services and for 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 curl or curl online.

curl -I http://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/CDN Video Push services because they come with our storage as origin and our storages are configured to respond with "Accept-Ranges: bytes" HTTP header. Or you can manually add the header in your S3 Management Console.

Adding custom HTTP headers in S3 Management Console
  • Log in to your S3 Management Console and open your Bucket.
  • Right-click on your video file as in the picture below.
    S3 Management Console
  • In the Metadata section click on the "Add more metadata" and add your custom HTTP header as in the picture below.
    S3 Management Console
  • Click on the "Save" button.
  • That's all

Now use curl or curl online and make sure that your custom HTTP header is present in the curl response.

Please note that in the case of HTTP header "Accept-Ranges: bytes" the header is (from some reason) not saved in S3 Management Console but the important part is that it is present in the curl response.

 
 __   _      ___               __   __  
| || | ||   / _ \\      ___    \ \\/ // 
| '--' ||  / //\ \\    /   ||   \ ` //  
| .--. || |  ___  ||  | [] ||    | ||   
|_|| |_|| |_||  |_||   \__ ||    |_||   
`-`  `-`  `-`   `-`     -|_||    `-`'   
                         `-`            
Europe
  • Amsterdam
  • Bucharest
  • Budapest
  • Chelyabinsk
  • Copenhagen
  • Dubai
  • Dublin
  • Frankfurt
  • Helsinki
  • Istanbul
  • Karlskrona
  • Kharkov
  • Kiev
  • Kungalv
  • London
  • Lvov
  • Madrid
  • Milan
  • Moscow
  • Odessa
  • Oslo
  • Polevskoy
  • Rostov-on-Don
  • Samara
  • Stockholm
  • Tel Aviv-Yafo
  • Trondheim
  • Zagreb
America
  • Arlington
  • Atlanta
  • Chicago
  • Dallas
  • Denver
  • Green Bay
  • Los Angeles
  • Miami
  • Montreal
  • New York
  • Phoenix
  • Portland
  • Provo
  • Queretaro
  • Reston
  • Sacramento
  • San Jose
  • Sao Paulo
  • Seattle
  • Toronto
  • Washington
Contact
  • e-mail: info@cdnsun.com
  • skype: cdnsun.com
  • phone: +1 844 300 9206
  • phone: +420 776 256 872
Blog Twitter LinkedIn Facebook CrunchBase Google+ / Google plus Foursquare Pinterest