LibWeb: Add some tests that exercise the HTTP disk cache

Our HTTP disk cache is currently manually tested against various sites.
This patch adds some tests to cover various scenarios, including non-
cacheable responses, expired responses, and revalidation.

In order to ensure we hit the disk cache in RequestServer, we must
disable the in-memory cache in WebContent.
This commit is contained in:
Timothy Flynn 2025-11-18 10:40:00 -05:00 committed by Jelle Raaijmakers
parent a4c8e39b99
commit 813986237e
Notes: github-actions[bot] 2025-11-20 08:35:21 +00:00
7 changed files with 353 additions and 0 deletions

View file

@ -47,6 +47,8 @@ interface Internals {
undefined enableCookiesOnFileDomains();
undefined expireCookiesWithTimeOffset(long long seconds);
boolean setHttpMemoryCacheEnabled(boolean enabled);
DOMString getComputedRole(Element element);
DOMString getComputedLabel(Element element);
DOMString getComputedAriaLevel(Element element);