开发者

Is there is any limitation of a html page

开发者 https://www.devze.com 2023-01-06 12:29 出处:网络
Is there is any limitation of a html page that开发者_运维知识库 it can only hold some kb of data. if we do rest code it will be ignored.As far as the HTTP protocol is concerned, the content-length hea

Is there is any limitation of a html page that开发者_运维知识库 it can only hold some kb of data. if we do rest code it will be ignored.


As far as the HTTP protocol is concerned, the content-length header field defines the size of the content, which can be any value greater than or equal to 0.

But you've got to consider limitations on bandwidth, transfer time, memory, etc.. The size of a web page should never be more than manageable anyway. Do you really want to be delivering a page that's so big you're having to question whether there's a limit?


If your page is too big, it will take too long to load and users will cancel the load and leave before it finishes. If it's really too big, the browser will run out of memory and crash. "too big" and "really too big" are relative terms, and different for every user.


AFAIK, your only limit is what you set Content-length to be in the response header (apart from things like how much memory your browser can use, how many bytes you can transfer over the network before the apocalypse, etc.).

0

精彩评论

暂无评论...
验证码 换一张
取 消