How to run the cache web api #19873
-
https://deno.com/blog/v1.26#cache-web-api I saw this release and tried to deploy to deno to actually try the Cache Web API, but it doesn't seem to work with an error
Is there anything wrong with this condition? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hey @swfz! So you're trying to use the Web Cache API on Deno Deploy. I asked Ryan the same question a while ago and he told me that they plan to eventually release it on Deno Deploy, but other features would have a higher priority at the moment. The linked changelog barely states that the Cache API is included in the Deno runtime starting with v1.26 & bound to the local file-system. Sorry, but you're out of luck here! |
Beta Was this translation helpful? Give feedback.
-
This is also a problem encountered by Fresh, a disguised approach is to use deno kv,Relevant issues visible 👉 fresh/issues/1062,I hope it's helpful to you |
Beta Was this translation helpful? Give feedback.
-
This is now supported on deno deploy - https://deno.com/blog/deploy-cache-api The docs mention it's "closed beta" though. So, it might take bit more time to be generally available - https://docs.deno.com/deploy/manual/edge-cache/ |
Beta Was this translation helpful? Give feedback.
Hey @swfz!
So you're trying to use the Web Cache API on Deno Deploy. I asked Ryan the same question a while ago and he told me that they plan to eventually release it on Deno Deploy, but other features would have a higher priority at the moment.
The linked changelog barely states that the Cache API is included in the Deno runtime starting with v1.26 & bound to the local file-system.
Sorry, but you're out of luck here!