|
|
|
|
|
by tenebrisalietum
2510 days ago
|
|
It'd be awesome to have an extremely lightweight protocol that lets you get the size or approximate size of a resource before download. Maybe a new HTTP method like SIZEOF. But how to make it truthful? Other than client cutting off download at the expressed limit. Would that be good enough? And how to express "fuzzy" sizes like "at least 1MB but might be a little more or less". |
|
The server should not return fuzzy content lengths: your client should have soft limit ranges rather than a single hard limit.
Of course, the server is not required to support HEAD, nor is it required to include Content-Length, which touches on your real complaint:
Programmers get to write programs the way they want to, and most of them don't share your value of preserving bandwidth and using progressive enhancement.
That is a relational and human problem. There is no technological solution to it.