WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
272962
Web Inspector: Doesn't show caches created with caches.open
https://bugs.webkit.org/show_bug.cgi?id=272962
Summary
Web Inspector: Doesn't show caches created with caches.open
Callionica
Reported
2024-04-19 01:04:12 PDT
Created
attachment 471003
[details]
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; }
Attachments
A web page to create a cache entry
(2.55 KB, text/html)
2024-04-19 01:04 PDT
,
Callionica
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2024-04-19 02:51:45 PDT
<
rdar://problem/126742403
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug