Skip to content

bug: cache.keys() is not a function #29460

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
iuioiua opened this issue May 27, 2025 · 0 comments
Open

bug: cache.keys() is not a function #29460

iuioiua opened this issue May 27, 2025 · 0 comments

Comments

@iuioiua
Copy link
Contributor

iuioiua commented May 27, 2025

Source:

const cache = await caches.open("my-cache");
await cache.keys();

Output:

error: Uncaught (in promise) TypeError: cache.keys is not a function
await cache.keys();
            ^
    at file:///Users/asher/GitHub/fresh/x.ts:2:13
    at eventLoopTick (ext:core/01_core.js:178:7)

Reference: https://developer.mozilla.org/en-US/docs/Web/API/Cache/keys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant