Palash Bansal
CDCloudflare Developers
•Created by Mustafa Akın on 10/7/2023 in #workers-help
Use D1 Database without binding
Docs mention you can have upto 5000 bindings: https://developers.cloudflare.com/d1/platform/limits/
And there are APIs to create D1 database and patch the worker and patch the worker script to add a new binding
https://developers.cloudflare.com/api/operations/cloudflare-d1-create-database
https://developers.cloudflare.com/api/operations/worker-script-patch-settings
2 replies
CDCloudflare Developers
•Created by oldmanmeta on 10/13/2023 in #r2
CORS
I have had this issue before, when using an R2 or GCP bucket with multiple origins in cors policy and also caching on cloudflare.
Since the origin is in the response headers, its also cached when you open it from one domain in the browser
I tried Vary: Origin header but it doesnt work always
The only proper workaround I found for this is to add the origin or something in the query string with the URL.
If anyone from CF is aware of any other solution, it would be helpful
18 replies
CDCloudflare Developers
•Created by Ottomated on 7/11/2023 in #workers-help
Enabling Image Resizing not per-domain
Have you tried setting node compat flag in wrangler
10 replies
CDCloudflare Developers
•Created by Ottomated on 7/11/2023 in #workers-help
Enabling Image Resizing not per-domain
Its possible to use wasm to load and resize image with image-js or jsquash. Its a bit slow, so it requires unbound workers on workers paid, but then its possible to do resize on any domain
10 replies