mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 10:37:17 +02:00
LibHTTP: Allow revalidating heuristically cacheable responses
This is expected by WPT (the /fetch/http-cache/304-update.any.html test in particular).
This commit is contained in:
Notes:
github-actions[bot]
2026-02-06 11:25:30 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/17d7c2b6bdb Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7430
@@ -372,6 +372,14 @@
|
||||
});
|
||||
expectCacheStatus(url, response, "read-from-cache");
|
||||
|
||||
response = await cacheFetch(url, {
|
||||
headers: {
|
||||
[TEST_CACHE_REQUEST_TIME_OFFSET]: 90 * 60,
|
||||
[TEST_CACHE_RESPOND_WITH_NOT_MODIFIED]: "1",
|
||||
},
|
||||
});
|
||||
expectCacheStatus(url, response, "read-from-cache");
|
||||
|
||||
response = await cacheFetch(url, {
|
||||
headers: {
|
||||
[TEST_CACHE_REQUEST_TIME_OFFSET]: 90 * 60,
|
||||
|
||||
Reference in New Issue
Block a user