Cloudfront serves stale manifest for the DVR playback

0

We are having an issue in our platform where stale manifest is served for the DVR/Start-over playback requests. This creates inconsistency in the DVR DASH playback when the manifest changes from type=Dynamic to type=Static.

From our observation, at times, when the end time of startover and the playback request don’t align perfectly, the last manifest from origin is of type=dynamic, but max=age=21600. This result in Cloudfront caching this manifest, and returning to the subsequent requests. We need a means to not cache the manifest during this transition. We are looking at using cache-control: stale-while-validate or max=age , or some other options to correct the behaviour.

Karthik
已提問 1 年前檢視次數 220 次
1 個回答
0

Hi - May be you can explore stale-while-revalidate and stale-if-error cache control directives. stale-while-revalidate is ideal for content that refreshes frequently or unpredictably, or where content requires significant time to regenerate, and where having the latest version of the content is not essential. The stale-if-error directive enhances the user experience and improves availability by serving stale content when origins return an error.

profile pictureAWS
專家
已回答 1 年前
  • Hi Nitin, Thanks for response. Could you share the procedure how to enable the flag stale-while-revalidate in cloudfront? Is it under cache behaviour? or do we need to use any L@E for this?

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南