Feature Request: Add HTTP Header `content-length`
In order to provide a download size to the user i want to read the file size with a HEAD request from CRUD (optional: from the resolver at textgridrep.org).
A successful implementation will provide
curl -I https://textgridlab.org/1.0/tgcrud-public/rest/textgrid:kv2v.0/data
HTTP/2 200
server: nginx
date: Mon, 20 Feb 2023 10:59:26 GMT
content-type: text/xml
content-disposition: inline; filename="Biographie_Carroll_Lewis.kv2v.0.xml"
content-length: 19475
last-modified: Wed, 04 Jan 2012 22:17:25 GMT
referrer-policy: no-referrer
x-clacks-overhead: GNU John Dearheart
and
curl -I https://textgridlab.org/1.0/tgcrud-public/rest/textgrid:3zhh6/data
[…]
content-length: 63837408
[…]
In addition see: MDN and corresponding RFC9110
For the Rep-Portal I propose adding the download size as well in order to increase accessibility. Currently the Download Section on an object does not tell about its size: