Re:Zelda Screen Transitions Are Undefined Behaviour
by OJFord on Wednesday July 17, 2019 @06:55PM
(#20464866)
Why isn't there an HTTP request header like 'Accept-Content-Length' to limit maximum response size?
[ Parent
| on HN ]
Re:Zelda Screen Transitions Are Undefined Behaviour
by tenebrisalietum on Wednesday July 17, 2019 @09:36PM
(#20465869)
Sometimes is really expensive for the server to determine the size of the response before actually responding, e.g. some database lookups where it may not be known how many rows are returnable until the lookup is actually done.
Then there are situations where response content length is not known, such as streaming over HTTP.
Last, if a certain "Accept-Content-Length" became standard, like 8MB, developers (such as those for the ad industry) would just create javascript libraries that would download large files in 8MB chunks and sidestep it.