root part? Does it just 404?http://127.0.0.1:8787/static/htmx.js returns 404 Not Found./static/htmx.js which fails. You should try root: /http://127.0.0.1:8787/htmx.js it now fails and sends 404 Not Foundhttp://127.0.0.1:8787/static/htmx.js does the same thing, 404 Not Found./*500 Internal Server Error lolArrayBuffers, then are streamed out as a ReadableStream to your Worker, which is why it is fastest. A value stored as a string can still retrieve be retrieved as a ReadableStream.delete calls fail if the key doesn't exist/was auto-expired?wrangler dev uses local KV namespaces by default. These can be shared with other local instances, but will not affect the KV Namespaces in the cloud--persist-to to ensure they are both pushing their data to the same directorykv:bulk put on local dev?--local to the commandhttp://127.0.0.1:8787/static/htmx.jshttp://127.0.0.1:8787/static/htmx.js404 Not Found404 Not Found404 Not Found./static/htmx.jsroot: /http://127.0.0.1:8787/htmx.js./*const readable_stream = new Response(JSON.stringify(res)).body;
await c.env.CACHE.put('key' + uuid, readable_stream, { type: "stream", expirationTtl: 86400 });var cache = await c.env.CACHE.get('key' + uuid, { type: "stream" });
if(cache && !reset) {
console.log('Cached', sql)
return new Response(cache, { status: 200, headers: { "Content-Type": "application/json" } });
}app.get("/static/*", serveStatic({ root: "/", manifest }));
// app.get("/htmx.js", serveStatic({ path: "./htmx.js", manifest }));
// app.get("/simple.css", serveStatic({ path: "./simple.css", manifest }));
app.get("/", (c) => {
return c.html(Home);
});app.get("/*", serveStatic({ root: "./", manifest }));