LibWeb+WebContent: Hook Fetch's HTTP cache into the clear-cache action

And fix a typo in an invocation to clear the cache.
This commit is contained in:
Timothy Flynn 2025-11-05 09:18:16 -05:00 committed by Andreas Kling
parent ac246caa0c
commit e0a8eb3767
Notes: github-actions[bot] 2025-11-05 17:28:33 +00:00
4 changed files with 14 additions and 2 deletions

View file

@ -33,6 +33,7 @@
#include <LibWeb/DOM/ShadowRoot.h>
#include <LibWeb/DOM/Text.h>
#include <LibWeb/Dump.h>
#include <LibWeb/Fetch/Fetching/Fetching.h>
#include <LibWeb/HTML/BrowsingContext.h>
#include <LibWeb/HTML/HTMLInputElement.h>
#include <LibWeb/HTML/SelectedFile.h>
@ -386,7 +387,7 @@ void ConnectionFromClient::debug_request(u64 page_id, ByteString request, ByteSt
}
if (request == "clear-cache") {
// FIXME: Clear the Fetch cache.
Web::Fetch::Fetching::clear_http_cache();
return;
}