DenoDDeno
Powered by
FranzF
Denoβ€’11mo agoβ€’
3 replies
Franz

Web Cache API not available in Deno Binaries?

It seems like the Web Cache API isn't available in deno binaries created through
deno compile
deno compile
. Is there any config that I need to change to enable this, or is this Web API just not available in Deno binaries? I see that the Web Storage API isn't available in Deno binaries, but I was wondering if the Web Cache API not working in Deno binaries is also intended.

The specific error I'm seeing when I use try to use the the Web Cache API (in this case,
caches.open("foo")
caches.open("foo")
) is
TypeError: CacheStorage is not available in this context
TypeError: CacheStorage is not available in this context
.

I would appreciate any workarounds/solutions here, I need to be running my application through a binary generated through
deno compile
deno compile
.
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Use web API's in deno lsp
SkythedragonSSkythedragon / help
3mo ago
deno cache
begoonBbegoon / help
2y ago
Cache imports in deno.json
NebulaRhythmNNebulaRhythm / help
3y ago
deno options not available in vscode debugger options
lvinLlvin / help
3y ago