Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

As a matter of standards compliance <https://www.rfc-editor.org/rfc/rfc9110#section-9.3.2-2>:

> However, a server MAY omit header fields for which a value is determined only while generating the content.

I find omitting Transfer-Encoding quite understandable and reasonable; the whole purpose of HEAD is to say “don’t bother doing the work that GET would trigger, I don’t care about exactness, I’m just getting a general idea”. Though I do find cases where Content-Length is omitted, even on static resources, disappointing. Saw that happen for I think the first time a few weeks ago (that is, a Content-Length that was present in GET but absent in HEAD).

But certainly I’ve seen more than a few 405 Method Not Allowed responses to HEAD, which is definitely bad.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: