deploy_feedback icon indicating copy to clipboard operation
deploy_feedback copied to clipboard

[Bug]: ReferenceError: caches is not defined

Open inverted-capital opened this issue 1 year ago • 2 comments

Problem description

The beta features for web caches isn't working for me. I know it's beta, but its so good - what do I need to do to access it ?

My isolate was in australia: gcp-australia-southeast1

Steps to reproduce

Deploy any code that tries to access the caches global:

const cache = await caches.open('bart')

Deno.serve((req: Request) => new Response("Hello World"));

Expected behavior

Docs say its there - plz be there

Environment

No response

Possible solution

No response

Additional context

No response

inverted-capital avatar Apr 15 '24 11:04 inverted-capital

Original issue seems here: https://github.com/denoland/deploy_feedback/issues/74

inverted-capital avatar Apr 22 '24 22:04 inverted-capital

I'm also looking for this feature for my AWS API codegen (first in a PR and then in a simple public playground). This API would really speed up and also simplify my Deno Deploy setup (a good combination!), I would love to give it a spin. Currently I am using an S3 bucket for a cache which means that other continents have increased latency.

I suppose the docs landed before the feature itself..

danopia avatar May 10 '24 18:05 danopia

This available for me now. Docs say it is in closed beta. Hopefully we all get it real soon.

https://docs.deno.com/deploy/manual/edge-cache/

inverted-capital avatar Nov 04 '24 23:11 inverted-capital