Content-Length Not reporting in HTTP Headers

sahith

Well-Known Member
#1
I recently came to know that, none of the websites are reporting "Content-Length" in response headers, is it important? . Is there any setting to make it appear in response headers.
 

NiteWave

Administrator
#2
I recently came to know that, none of the websites are reporting "Content-Length" in response headers
static file should have Content-Length header. for example:
https://www.litespeedtech.com/templates/yoo_infinite/css/bootstrap.css
content-length:18413

https://www.litespeedtech.com/media/jui/js/jquery.min.js
content-length:33318

https://www.litespeedtech.com/cache/widgetkit/gallery/66/apache_dropin-e3eb84e47a.png
content-length:43796

from the official definition:
https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.13
"Applications SHOULD use this field to indicate the transfer-length of the message-body"
"In HTTP, it SHOULD be sent whenever the message's length can be determined prior to being transferred"
 
Top