manuel.is      about

Get your headers in shape

Today is 1st of January, and as I write this, the weather outside is dreadful 8th of January, and even though the weather outside is fair, the ice on the streets makes walking outside more challenging than what I am willing to accept.

It was then that, while browsing away, I stumbled upon a pull request from fellow programmer and good friend aperezdc against an ominous repo: 512kb.club. The club is yet-another-plea at designing and implementing more resource-conscious websites. Be that from the perspective of sustainability or mere engineering efficiency, I concur with the open statement:

The internet has become a bloated mess. Huge JavaScript libraries, countless client-side queries and overly complex frontend frameworks are par for the course these days.

I have therefore raised a PR to join the club, and even though it ended up rejected the effort raised my attention to something I have let to the defaults of my HTTP server: the security headers.

Winter landscape painting by Pekka Halonen
Pekka Halonen, Winter landscape, 1920. Oil on canvas. EMMA – Espoo Museum of Modern Art. Public domain

Reading up from OWASP.org on security headers has helped me correct those defaults and end up with a slightly more secure website.

I learned the hard way that different types of content will require a different set of security headers, as it is not the same to serve static content than, say, HTML + JS.

Oh and by the way, I still fully support the effort, go check it out and join the club to back a more efficient web for all. ✌🏻

Typed on Jan 8, 2026