News for hackers. Stuff that matters.
Re:Static site hosting hurdles by ciprian_craciun on Tuesday September 06, 2022 @04:26AM (#32734422)
> [...] the article somehow concludes that bringing your own server with the right configuration is not an option.

[the author here] On the contrary, it is an option to fine-tune your web-server configuration to put all the right headers in the right places. (I usually do this from HAProxy and just ignore the web-server.)

However, the point I was trying to make in the article is that where these headers are configured is divorced from the content itself lives. I can't look at a HTML file and easily say "when the browser will hit this resource these are the HTTP headers that will be sent in the reply"; I need to execute in my mind the web server configuration logic to get that.

Thus my proposal is to move back (some of) the headers where they belong: as meta-data right besides the actual resource.

Re:Static site hosting hurdles by the_gipsy on Tuesday September 06, 2022 @06:40AM (#32735260)
But do you really need different headers for different resources for a static site? I can imagine a distinct "downloads" folder maybe, but not much more.