Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e138469d1ad983d02a4a230bbb340011101c179c
https://github.com/WebKit/WebKit/commit/e138469d1ad983d02a4a230bbb340011101c179c
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/heuristic.any-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/fetch/http-cache/heuristic.any.serviceworker-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/fetch/http-cache/heuristic.any.sharedworker-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/fetch/http-cache/heuristic.any.worker-expected.txt
M Source/WebCore/platform/network/CacheValidation.cpp
M Source/WebCore/platform/network/CacheValidation.h
M Source/WebCore/platform/network/ResourceResponseBase.cpp
M Source/WebCore/platform/network/ResourceResponseBase.h
M Source/WebKit/NetworkProcess/cache/NetworkCache.cpp
Log Message:
-----------
Honor Cache-Control: public on unknown statuses
https://bugs.webkit.org/show_bug.cgi?id=317256
rdar://179870099
Reviewed by Chris Dumez.
Parse the Cache-Control: public response directive and allow it to make
responses storable even when
their status code is not cacheable by default. This lets such responses be
reused using heuristic
freshness (e.g. when they include Last-Modified).
RFC 9111 ยง3 defines public as an explicit storage condition:
https://www.rfc-editor.org/rfc/rfc9111.html#section-3
*
LayoutTests/imported/w3c/web-platform-tests/fetch/http-cache/heuristic.any-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/fetch/http-cache/heuristic.any.serviceworker-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/fetch/http-cache/heuristic.any.sharedworker-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/fetch/http-cache/heuristic.any.worker-expected.txt:
* Source/WebCore/platform/network/CacheValidation.cpp:
(WebCore::parseCacheControlDirectives):
* Source/WebCore/platform/network/CacheValidation.h:
(WebCore::CacheControlDirectives::CacheControlDirectives):
* Source/WebCore/platform/network/ResourceResponseBase.cpp:
(WebCore::ResourceResponseBase::cacheControlContainsPublic const):
* Source/WebCore/platform/network/ResourceResponseBase.h:
* Source/WebKit/NetworkProcess/cache/NetworkCache.cpp:
(WebKit::NetworkCache::makeStoreDecision):
Canonical link: https://commits.webkit.org/315445@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications