Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ Thank you!
Assar Westerlund <assar@pdc.kth.se>
Axel Westerhold <ml.awesterhold@dts.de>
Aymeric Vincent <aymericvincent@free.fr>
Baolin Zhu <zhubaolin228@gmail.com>
Barry Dobyns <barry@dobyns.com>
Ben Kallus <benjamin.p.kallus.gr@dartmouth.edu>
Benjamin Kerensa <bkerensa@ubuntu.com>
Expand Down
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