Menu

Resuming the TLS session to our site saves 4,070 bytes and zero milliseconds, because early data is set to zero
📰

Resuming the TLS session to our site saves 4,070 bytes and zero milliseconds, because early data is set to zero

DEV Community: nextjs·Daniel Pertu·6 days ago
#bzCPQUiU
#devtonextjs#devto#dev#bytes#connection
Long article (1701 words) — no AI summary yet.
Reading 0:00
15s threshold

Everything above the HTTP layer on pub-trivia.app has been measured to death on this blog: the bytes of HTML, the brotli ratios, the fonts, the chunk names, the sitemap. The layer underneath, the part that decides what it costs to open a connection and keep using it, had never been touched. So this is a census of the transport: the handshake, the HTTP/2 settings the server sends, what header compression actually buys per request, how many streams it will take at once, and which optional features are simply absent.

All of it is from one laptop against one Vercel edge location ( x-vercel-id says fra1 ), with openssl , curl and a Node http2 client.

The handshake, and the test that lies about it

TLS 1.3, one round trip, three certificates:

$ openssl s_client -connect pub-trivia.app:443 -servername pub-trivia.app -showcerts depth=0 CN=*.pub-trivia.app depth=1 C=US, O=Let's Encrypt, CN=YR1 depth=2 C=US, O=ISRG, CN=Root YR New, TLSv1.3, Cipher is TLS_AES_128_GCM_SHA256

Enter fullscreen mode

Exit fullscreen…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.