kian
03/29/2023, 12:17 AMAbortSignal.timeout
to the signal
property in the fetch
optionsavi
03/29/2023, 12:17 AMavi
03/29/2023, 12:18 AMavi
03/29/2023, 12:18 AM--local
vs dev/new localavi
03/29/2023, 12:19 AMavi
03/29/2023, 12:19 AMsetInterval
in the DO, such that it's always doing periodic CPU work... will that cause it to never sleep? or will it sleep iff nobody is connected to it?kian
03/29/2023, 12:20 AMkian
03/29/2023, 12:22 AMavi
03/29/2023, 12:25 AMwedtm
03/29/2023, 1:28 AMThis script has too much traffic: 247 invocations per second, which is over the limit of 200.
Unsmart | Tech debt
03/29/2023, 1:36 AMwedtm
03/29/2023, 1:38 AMUnsmart | Tech debt
03/29/2023, 1:38 AMwedtm
03/29/2023, 1:39 AMsirhype
03/29/2023, 3:28 AMsirhype
03/29/2023, 3:34 AMstaticmedia
03/29/2023, 3:51 AMUnsmart | Tech debt
03/29/2023, 4:09 AMYacine Hmito
03/29/2023, 5:19 AMYacine Hmito
03/29/2023, 5:22 AMcomputeronix
03/29/2023, 5:24 AMconst init = {
status:200,
method: 'GET',
headers: {
"content-type": "application/json",
"User-Agent": USER_AGENT_HEADER,
"Accept": "application/json",
"Access-Control-Allow-Origin": "*"
},
}
url = "https://customworkerdomain.com" //(this is bound to the source worker)
const request = new Request(url, init)
const response = await fetch(request)
i feel like i am missing a step as i feel like the subrequests of 50 are still applying -- anyway to tell easily 😄 as i see the worker getting requests 😄computeronix
03/29/2023, 5:25 AMYacine Hmito
03/29/2023, 6:35 AMYacine Hmito
03/29/2023, 6:36 AMenv
object.Yacine Hmito
03/29/2023, 6:38 AMYacine Hmito
03/29/2023, 6:38 AMYacine Hmito
03/29/2023, 6:49 AMSpoleto
03/29/2023, 2:51 PMif (STUFF)
{
response.headers.set(
"Set-Cookie",
"pricing-mode=on;max-age=604800;Path=/"
)
if (!contentType.startsWith("text/html")) {
return response;
}
html.on("body", new PRICING_MODE_ON());
}
Spoleto
03/29/2023, 2:51 PM