Can object be partially cached when TCP connection is closed?

We are experiencing a situation that jpeg images are partially rendered.
Like, the upper half of the image is shown while the bottom below is grayed.

t

Based on the log of the ECS container termination, this problem seems to be related to TCP disconnection.

So what’s the behavior of Cloudflare when Content-Length is mismatched with actual body size?

p.s.
There’s relevant documentation from CloudFront:
https://docs.aws.amazon.com/en_us/AmazonCloudFront/latest/DeveloperGuide/RequestAndResponseBehaviorCustomOrigin.html#ResponseCustomDroppedTCPConnections

This topic was automatically closed after 14 days. New replies are no longer allowed.