Content-Length
Specifies the size of the response body in bytes.
Syntax
Content-Length: <size-in-bytes>
Example
Content-Length: 3495
Description
Content-Length indicates the exact size of the response body in bytes, allowing the browser to determine when transfer is complete.
Enables efficient connection reuse. Without it, the server must use chunked transfer encoding or close the connection.
Automatically set by most servers for static files. Incorrect values cause incomplete responses.
How real sites send this header
Home-page responses of 502 popular sites from the enterno.io /check catalogue, checked in the last 30 days.
30.9%
(155 of 502) send Content-Length.
See it on: google.com, cnn.com, vk.com, angular.dev, bloomberg.com
Check if your website sends this header correctly
Check your headers →