, and it still expires randomly after a few hours or a day. Any insights about this? Tried searching google but doesnt found any good info I'm certain about this as I checked > 10 times, open devtools to make sure it's removed
The logic is simple; I copied it from the doc's example.
const inCache = await caches.default.match(new Request(cacheKey, ctx.request)) const query = new URL(ctx.request.url).searchParams if (inCache && !query.get('noCache')) return new Response(inCache.clone().body, inCache)....
const inCache = await caches.default.match(new Request(cacheKey, ctx.request)) const query = new URL(ctx.request.url).searchParams if (inCache && !query.get('noCache')) return new Response(inCache.clone().body, inCache)....
Why s-maxage: I want to share cache between across accounts