Jump to content
  • 0

Caching through CDN for HLS traffic

Giang Nam


Hi there,

If I'm serving the HLS stream from Ant Media Server through a CDN, is it gonna cached the stream or all requests are routed to the origin Ant Server?

How can I decide how long the segments can be cached within the CDN without going back to the origin server?

Link to comment
Share on other sites

  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

1 answer to this question

Recommended Posts

  • 0
Hi giang,

Thank you for the great question. There are 2 things to watch out for. 

1- Ant Media Server HLS file expire & cache system is in below.

-.TS extension expire time is 10 seconds and TS files are created once with stream ids.
- .M3UA extension expire time is 2 seconds and this file is always updated.

2- CDN file expire and cache system.

You need to have CDN for HLS live streaming. General configuration of CDN for HLS streaming is likely ok. Just keep in mind the  Ant Media Server HLS Files expire time values mentioned above.

I hope that I was able to answer your queries. If you have any question, please feel free to let us know. 
Thank you.

Best Regards,
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...