lingo.lol is one of the many independent Mastodon servers you can use to participate in the fediverse.
A place for linguists, philologists, and other lovers of languages.

Server stats:

69
active users

#http

0 posts0 participants0 posts today

How browsers REALLY load Web pages

When browsers load a Web page and its subresources, A LOT happens under the hood. They need to take into account render/parsing blocking resources, use a preload scanner, listen to resource hints (like preload/preconnect), loading modifiers (async/defer/module), fetchpriority, responsive images, and much more. […]

📺 fosdem.org/2025/schedule/event

fosdem.orgFOSDEM 2025 - How browsers REALLY load Web pages
#video#web#browser

New @small-web/kitten release (version 5.2.0)

Adds missing types on `KittenRequest` and `KittenResponse` interfaces (the missing request and response helpers).

• `is()`: check for request type. e.g., `request.is('html')` or `request.is('json')` (you can also use the full mimetype).
• `json()`: JSON.stringify passed data and end response with inline JSON.
• `jsonFile()`: JSON.stringify passed data and end response with JSON attachment and optional file name.
• `file()`: end response with passed file data and optional file name and mime type.
• `withCode()`: end response with passed status code and optional body.

Kitten request and response helpers documentation:

kitten.small-web.org/reference

Kitten type safety tutorial:

kitten.small-web.org/tutorials

Enjoy!

:kitten:💕

Continued thread

this is a bit of a backwards compatibility nightmare if you're worried about badly behaving clients. The haproxy devs think all those clients should just be fixed, which is true, but I don't think it's very pragmatic. Surprising from them tbh!

Frankly, I think they designed their new HTTP system without expecting this would be such a problem and don't want to change it now.

Anyway, haproxy no longer support 2.1 but RedHat support it til 2029, which buys you some time!

All HTTP headers are supposed to be case insensitive and in HTTP/2 it was made explicit that they should all be lower case.

When haproxy introduced HTTP/2 support, it downcased all response headers it sends, no matter what the origin servers sent, though it had an option to leave HTTP/1 headers alone.

haproxy 2.1 removed that option and (begrudgingly) replaced it with a way to set the case for specific individual headers under HTTP/1 to allow fixes for broken clients...

Here's an #HTTP #API design question for you:

Imagine you're creating a work-submission API. A single user request submits 1 or more items to process.

Your API is async: the "submit this batch of items" endpoint returns an opaque identifier that the user needs to poll with, periodically, for data encoding the batch items' processing statuses: success or failure for each.

Q: Which HTTP response code should the polling endpoint return:

- if some items fail?
- if all items fail?

🆕 blog! “Mastodon Now Sends Referer Headers! Hurrah!”

Back in 2022, I wrote this rather grumpy post on Mastodon, the federated social media platform.

> Mastodon enforces a "noreferrer" on all external links. I have mixed feelings about that. As a blogger, I want to see *where* visitors are coming from…

👀 Read more: shkspr.mobi/blog/2024/12/masto

#fediverse #http #mastodon

Terence Eden’s Blog · Mastodon Now Sends Referer Headers! Hurrah!
More from Terence Eden

Mastodon Now Sends Referer Headers! Hurrah!

shkspr.mobi/blog/2024/12/masto

Back in 2022, I wrote this rather grumpy post on Mastodon, the federated social media platform.

@Edent@mastodon.social

Terence Eden

Mastodon enforces a "noreferrer" on all external links.

I have mixed feelings about that.

As a blogger, I want to see *where* visitors are coming from. I also like to see (and sometimes join in) with the conversations they're having.

But, I get that people want privacy and don't want to "leak" where they're visiting from.

Is it such a bad thing to tell a website "I was referred from this specific server"?

❤️ 61💬 16🔁 2907:09 - Fri 11 November 2022

When you click on this link - https://www.bbc.co.uk/news - your browser says "Hey! BBC! Please can I have your /news page? BTW, I was referred here by shkspr.mobi. THANKS!" This is called the "Referer" and, yes, it is mispelt.

One the one hand, sending the referer is good; it lets the linked-to server know who is linking to it. That allows them to see where traffic is coming from. On the other hand, this could be bad for much the same reason.

If you run a server anarcho_terrorists.biz, you probably don't want the FBI knowing that your members are sharing links to their pages. If you run a small personal server, you may not want anyone knowing that you personally linked to them. If you run a server for a marginalised community, you may not want a hate-site to know your members are linking to you.

But if you're a large-ish, general purpose, non-private site - like Mastodon.social - where's the harm in allowing referer headers?

Anyway, for historic reasons, Mastodon blocked the referer header. This, I believe, was sensible for smaller servers but a miss-step for larger servers. As I pointed out last week:

@Edent@mastodon.social

Terence Eden

Two years later.

Want to know one of the major reasons Mastodon didn't catch on with journalists and large website owners?

It is *invisible* in referrer statistics.

Here's my blog from the last month.

BlueSky now sends me more traffic than Bing.

How much traffic does Mastodon send? It is impossible to know due to the "noreferrer" header in all links.

(I'm not saying your privacy isn't important. But you can't grow a community if no-one knows you exist.)

❤️ 305💬 57🔁 24812:48 - Sat 07 December 2024

I'm not the only one to make this point - it has been a popular complaint for some time.

A few days ago, Mastodon changed to allow this to be configurable.

This is excellent news. Website owners will be able to (somewhat) accurately see how much traffic Mastodon sends them. That way they can determine if there is a suitably large audience to engage with on the Fediverse.

It is, of course, slightly more complicated than that!

  • Instance owners can opt-in to allowing Referer headers (it is off by default).
  • The policy means that only the domain name is sent; not the full page.
  • Mastodon is federated and there are thousands of sites. Even if they all opted-in, their statistics will be fragmented.
  • Apps can set their own Referer header - leading to more fragmentation.
  • Even if they do opt-in, users can set their browsers not to send Referer headers.

Nevertheless, I'm delighted with this change. Hopefully it will allow the Fediverse to grow and attract more users.

Terence Eden’s Blog · Mastodon Now Sends Referer Headers! Hurrah!
More from Terence Eden