💾 Archived View for rawtext.club › ~sloum › geminilist › 000372.gmi captured on 2020-09-24 at 02:37:06. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

<-- back to the mailing list

Adding a content size meta?

solderpunk solderpunk at SDF.ORG

Sat Jan 18 18:57:49 GMT 2020

- - - - - - - - - - - - - - - - - - - ```

On Sat, Jan 18, 2020 at 06:58:26PM +0100, Brian Evans wrote:
> julienxx writes:
> 
> Could we imagine a standardized way to query 
> an URL just for it's meta header maybe?
> 
> I have just been requesting the document reading 
> the first line and then severing the connection. 
> 
> 
> I do agree that having content size, pref in bytes, in 
> the meta would allow for loading animations, 
> percent counters, download managers, etc. Which
> would benefit the user of any client.

I guess the question is whether we prefer adding this informationinto the response header and having clients do the request-and-terminatetrick, or defining a well-known endpoint servers can implement whichtakes a path as an input and returns either what the response headerwould be, or maybe a small JSON structure of metadata (which couldinclude stuff like last-modified date).

Cheers,Solderpunk