Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/HttpHeader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,11 @@ HttpHeader::skipUpdateHeader(const Http::HdrType id) const
return
// TODO: Consider updating Vary headers after comparing the magnitude of
// the required changes (and/or cache losses) with compliance gains.
(id == Http::HdrType::VARY);
(id == Http::HdrType::VARY) ||
// RFC 9111 Section 3.2 explicitly excludes Content-Length
// from the "MUST add ..., replacing already present" list. Also,
// broken servers are known to send Content-Length:0 in their 304s.
(id == Http::HdrType::CONTENT_LENGTH);
Comment thread
bowling233 marked this conversation as resolved.
}

void
Expand Down
Loading