topsy5409
CDCloudflare Developers
•Created by topsy5409 on 9/30/2024 in #pages-help
Reduce requests for Remix app?
I’ve noticed with a default Remix app deployment I trigger a lot of page worker requests, I’m assuming due to SSR.
Using a combination of cache control headers in my remix app plus Cloudflare Cache Rules I’m now seeing mostly CF HIT headers.
Can I assume CF HITs don’t count as worker requests? Such that my Cloudflare Pages costs will be comparable to a SSG site built with Gatsby, $0 or close to it, even if my app got a TON of traffic?
1 replies
CDCloudflare Developers
•Created by topsy5409 on 9/25/2024 in #pages-help
Custom domain without <myproject>.pages.dev?
I’d like my Pages app to only be associated with my custom domain. It seems possible in the docs, https://developers.cloudflare.com/pages/configuration/custom-domains/, but in practice the only option is setting up a cname.
Is this true? Even for domains where Cloudflare already has full control?
3 replies
CDCloudflare Developers
•Created by topsy5409 on 2/12/2024 in #workers-help
Worker deploy issues?
This afternoon when deploying updated workers I noticed they weren’t actually updating immediately. They show up as new deployments in Cloudflare dash for the worker, but aren’t actually live until minutes later. Anyone else notice?
1 replies
CDCloudflare Developers
•Created by topsy5409 on 3/17/2023 in #workers-help
Testing with unstable_dev and production service bindings?
In development I have a javascript worker with a service binding to a production wasi worker. When running tests with unstable_dev, the service binding to the worker in production isn’t working, even though I’m providing unstable_dev with the wrangler config file that has the service binding to the production wasi worker.
Does unstable_dev support this? The docs have an example of multi-worker testing, but not with a situation like this, where the child worker is a wasi worker in production.
Thank you!
3 replies
CDCloudflare Developers
•Created by topsy5409 on 3/15/2023 in #workers-help
FetchEvent not received until POST request finishes?
While uploading a 100mb file to a worker via POST and PUT requests, I noticed I didn’t receive fetch events until seconds later. In my worker I check the content-length header, and if it’s too big I call cancel on the request readable stream and return an HTTP 413 error.
Why isn’t the fetch request handler being called immediately? For this example, I expected to be able to immediately cancel the post request after receiving the content-length header with the large size. Is this not possible?
Thank you!
1 replies
CDCloudflare Developers
•Created by topsy5409 on 3/13/2023 in #workers-help
Restrict incoming and outgoing worker traffic
Hi,
I know with service bindings I can call a worker internally/not over the internet, but is there any way I can restrict outgoing traffic for that worker as well? I’d like it lock it down so it can only talk to the other worker that it has a service binding with, and no access to the internet.
Thanks!
2 replies