Hacker News new | ask | show | jobs
by anon_cow1111 2530 days ago
*Note to mobile/metered internet users: first link contains 30MB+ of gif images, click at own risk.
2 comments

I got flashbacks of 2000s with this comment
Why isn't there an HTTP request header like 'Accept-Content-Length' to limit maximum response size?
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.