I managed to get the “response” saved into kv and retrieve.
how do i serve the response first AND THEN only put the response into KV in the “background”?
Surely await is necessary for .put() right?
clonedResponse = response.clone()
await EDGE_CACHE.put("url",jsonValue,{expirationTtl: 86400}) //this is my current problem. How do I let it run in the background? Surely await is necessary
return new Response(clonedResponse.body, response)