matt
09/09/2021, 11:35 PMunalignedant
09/09/2021, 11:37 PMWallacy
09/09/2021, 11:38 PMunalignedant
09/09/2021, 11:39 PMDatSparrow
09/09/2021, 11:46 PMai
09/09/2021, 11:47 PMai
09/09/2021, 11:47 PMGreg-McKeon
09/10/2021, 3:50 AMDatSparrow
09/10/2021, 3:53 AMGreg-McKeon
09/10/2021, 3:55 AMDatSparrow
09/10/2021, 3:55 AMjohn.spurlock
09/10/2021, 10:46 PMTypeError: The Durable Object's code has been updated, this version can no longer access storage.
- but I haven't deployed this object's code in days 🤔raRaRa
09/11/2021, 2:08 PMraRaRa
09/11/2021, 2:08 PMkenton
09/11/2021, 10:17 PMwrangler tail
? That will also cause that error. Otherwise, that's weird, that error should only happen when you changed something.john.spurlock
09/11/2021, 10:25 PMkenton
09/11/2021, 10:48 PMkenton
09/11/2021, 10:49 PMjohn.spurlock
09/11/2021, 10:52 PMkenton
09/12/2021, 12:52 AMwrangler tail
causes some code to be injected into the worker so that it sends logs somewhere. Because it's a code update, the durable objects get reset. We could probably fix this with some engineering effort.ItsWendell
09/12/2021, 9:47 AMkenton
09/12/2021, 7:12 PMItsWendell
09/12/2021, 7:16 PMkenton
09/12/2021, 7:53 PMItsWendell
09/12/2021, 8:04 PMOnly Workers deployed to custom domains have access to functional Cache operations.
(https://developers.cloudflare.com/workers/runtime-apis/cache)ItsWendell
09/12/2021, 8:11 PMkenton
09/12/2021, 8:18 PMMichaelM
09/12/2021, 8:37 PMHardAtWork
09/12/2021, 8:37 PMItsWendell
09/12/2021, 10:27 PMts
const cache = await caches.open(`cache:key`);
let res = await cache.match("http://my-do/info");
if (!res) {
res = await stub.fetch("http://my-do/info");
const cloned = res.clone();
const response = new Response(cloned.body, cloned);
response.headers.set("Cache-Control", "s-maxage=30");
await cache.put("http://my-do/info", response);
} else {
console.log("Cache hit.");
}
// ...
I never seem to get Cache hit.
in production, e.g. when running Miniflare it works. Could it be the way I generate the cacheKeys using a simple string instead of actual request?