If thats not too much to ask, would you be able to provide me with a link to the docs for that API call or SDK? On the cache documentation i only found the prefix based cache purge (marked as Enterprise)
Right now im getting 3ms for policy lookup, parsing and allowed/denied outcome on a 20 entities, 10 principals setup, seems amazingly quick! With added JWT parsing (and maybe caching with TTL equal to token exp) im thinking ican keep it under 25ms total, which blows AWS API Gateway out of the water!
is there a way to decrease number of requests for workers , as each visit to my website is hitting the worker hundreds of time , for each path , and for each request it count 1 request ?
the md5 option in r2 bucket#put accepts arraybuffer and string. I input a hexadecimal string however, the bucket response#checksums#md5 returns an arraybuffer regardless. How do i get it as a string, does cloudflare change it in any way while storing it?
just in case if anyone wants to know, it's in documentation " Each incoming HTTP request or WebSocket message resets the remaining available CPU time to 30 seconds. This allows the Durable Object to consume up to 30 seconds of compute after each incoming network request, with each new network request resetting the timer. If you consume more than 30 seconds of compute between incoming network requests, there is a heightened chance that the individual Durable Object is evicted and reset."
I want to know if it's possible to have a cache for CF workers such that if I come up against the rate limiter, I can just get my response from the cache even if it's stale just to have something returning.
sure so I can setup a cron job to hit the r2 to cache worker responses. I'd then be hitting R2 first always to see if the response is cached there and if not/"stale hit" then hit the worker, and just in case the worker comes back with an rate limiting error I can just use what I got from R2.
hey guys, i have a cloudflare worker that does only redirections. for example mydomain.com/path1 then it searches the KVs value for /path1 and redirects to that URL. But i noticed that i get less visitors on my domain after that. do you maybe know what the issue could be?
the domain gets really low number of requests with the worker. its about 50 requests daily now, before it was about 200 hundred i even removed the worker and got more requests directly the enxt day
Please do not post your question in multiple channels per the rules at #welcome-and-rules. It creates confusion for people trying to help you and doesn't get your issue or question solved any faster.
Hey, when I want to create a worker it always includes my email address in a subdomain like this: name.mail.workers.dev, is there a way to create a worker without having it include my email?