Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6235f1672706204ca4172bae3bf98be8893bb299
      
https://github.com/WebKit/WebKit/commit/6235f1672706204ca4172bae3bf98be8893bb299
  Author: Charlie Wolfe <[email protected]>
  Date:   2026-06-18 (Thu, 18 Jun 2026)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/fetch/http-cache/304-update.any-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/fetch/http-cache/304-update.any.serviceworker-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/fetch/http-cache/304-update.any.sharedworker-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/fetch/http-cache/304-update.any.worker-expected.txt
    M Source/WebCore/platform/network/CacheValidation.cpp

  Log Message:
  -----------
  Update arbitrary Content-* headers from 304 responses
https://bugs.webkit.org/show_bug.cgi?id=317250
rdar://179864251

Reviewed by Chris Dumez.

RFC 9111 §4.3.4 requires caches to update stored response headers from a 304 
using the rules in
RFC 9111 §3.2:

https://www.rfc-editor.org/rfc/rfc9111.html#section-4.3.4
https://www.rfc-editor.org/rfc/rfc9111.html#section-3.2

Section 3.2 lists specific exceptions, but explicitly says the Content-* prefix 
is not a signal that
a field is omitted from update. RFC 9110 §15.4.5 also defines 304 as a 
header-only metadata response:
https://www.rfc-editor.org/rfc/rfc9110.html#section-15.4.5

Stop ignoring all Content-* headers after revalidation. Preserve only the 
specific
representation/body-related fields WebCore needs to keep consistent with the 
stored body, so
arbitrary extension headers such as Content-Test-Header update normally.

* 
LayoutTests/imported/w3c/web-platform-tests/fetch/http-cache/304-update.any-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/fetch/http-cache/304-update.any.serviceworker-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/fetch/http-cache/304-update.any.sharedworker-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/fetch/http-cache/304-update.any.worker-expected.txt:
* Source/WebCore/platform/network/CacheValidation.cpp:

Canonical link: https://commits.webkit.org/315449@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to