Cloudfront randomly removes Range header

0

I am trying to use CloudFront for partial GET requests (with Range header) with caching enabled. I added Range header to the cache key settings in the cache policy. When a partial GET request is sent with proper Range header value, it works as expected most of the time. But in some cases, CloudFront drops the Range header from the Origin request and Origin (API Gateway) returns "Integration response of reported length 691691016 is larger than allowed maximum of 10485760 bytes" because of this. This behavior seems to be completely random. When I resend the exact same request, it returns a successful response with HTTP code 206. When I disable caching, this behavior does not occur.

  1. Is it necessary to add the Range header to cache policy for partial requests to work or is it forwarded automatically?
  2. What other settings can affect this behavior?

Thank you!

질문됨 3달 전88회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인