[Webkit-unassigned] [Bug 272962] New: Web Inspector: Doesn't show caches created with cache.open
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Apr 19 01:04:12 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=272962
Bug ID: 272962
Summary: Web Inspector: Doesn't show caches created with
cache.open
Product: WebKit
Version: WebKit Nightly Build
Hardware: All
OS: All
Status: NEW
Severity: Normal
Priority: P2
Component: Web Inspector
Assignee: webkit-unassigned at lists.webkit.org
Reporter: callionica at callionica.com
CC: inspector-bugzilla-changes at group.apple.com
Created attachment 471003
--> https://bugs.webkit.org/attachment.cgi?id=471003&action=review
A web page to create a cache entry
1. Create a cache called `my-cache-is-invisible`
2. Populate it with a single entry (optionally load the entry to prove that the cache is working correctly)
3. Look for your cache in the Web Inspector
We would expect to see the cache on the `Storage` page of the inspector, but there's no sign of it there in Safari Version 17.4.1 (19618.1.15.11.14)
Use the attachment to repro or use the code below.
Code for the repro:
const cache = await caches.open("my-cache-is-invisible");
const blob = new Blob(["LOADED FROM CACHE: Can you find the cache 'my-cache-is-invisible' in the webinspector?"], { type: "text/plain" });
const response = new Response(blob, { status: 200, });
const url = new URL("https://callionica.com/cache");
await cache.put(url, response);
Code to prove the cache actually exists and is working:
const cache = await caches.open("my-cache-is-invisible");
const url = new URL("https://callionica.com/cache");
const response = await cache.match(url);
if (response !== undefined) {
const text = await response.text();
document.querySelector(".output").innerHTML = text;
}
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240419/42a2f3d9/attachment.htm>
More information about the webkit-unassigned
mailing list