fetch ? I would like more control on timeouts and ssl which could be done with access to undici or node:http but these two don't work on workershttpx or aiohttp, but something in js should surely be availablePeriod: the duration of the period, in seconds. Must be either 10 or 60
env object can be equal by reference until the env variables or bindings change, so we cache our state on the env object but it gets evicted crazy fast.joseglobalThis instead of env and let you know if that changes our crazy-fast eviction.
/v2/cdn/stories/home?key=234234234, Storyblok will redirect this to a link that does have the cache value (cv) query param /v2/cdn/stories/home?cv=2342342234&key=234234234, will the second URL be fetched from the cloudflare cache or not? Preferably in this case, if we get a redirect status code from Storyblok, we don't want to cache that response. But if it redirects to an URL that does have the cache version (cv) included, and we already have that cached, we want to actually retrieve it from the cloudflare cache if available there.versionID and versionTag). These fields can be added to events emitted from the Worker to send to downstream …
const router = Router();
router.get('/api', () => {
return new Response('Welcome to the inspecti api', {
headers: { 'Content-Type': 'text/plain' },
});
});
router.all('*', () => new Response('404, not found!', { status: 404 }));
export default {
fetch: (request: Request, env: Env, ctx: ExecutionContext) => router.handle(request, env, ctx),
} satisfies ExportedHandler<Env>;undicinode:httphttpxaiohttpjoseglobalThis