Add Cache Response using Web Cache API #56305
kresnasatya
started this conversation in
Ideas
Replies: 1 comment
-
undici implement Cache and CacheStorage, https://github.com/nodejs/undici/blob/main/docs/docs/api/CacheStorage.md |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I see a neighbour of NodeJS, Deno has implement Cache Response using Web Cache API. I think if NodeJS can catch up this it will be great.
Background
I create web app that utilize Cache Response using SvelteKit & Cloudflare Pages (functions). The reason I choose Cloudflare because SvelteKit and Cloudflare Pages communicate using Web API standards which is makes more easier to implement a Cache Response.
Btw, I'm almost keep it in two repositories and replace the Worker (plain) with Hono because it supports Cache Middleware. But, I think it makes more complicated if I do this way.
Also, the Cache Middleware of Hono framework currently support in Cloudflare and Deno.
Syntax
The GET function comes from SvelteKit but the
caches
comes from Cloudflare.Beta Was this translation helpful? Give feedback.
All reactions