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:
Timothy Flynn
2026-01-11 11:16:07 -05:00
committed by Tim Flynn
parent bc1cafc716
commit 17d7c2b6bd
Notes: github-actions[bot] 2026-02-06 11:25:30 +00:00
2 changed files with 23 additions and 12 deletions

View File

@@ -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,