jam_zaw
CDCloudflare Developers
•Created by jam_zaw on 1/26/2025 in #workers-help
Implementing Worker Tag Cache and Purging by Tag
Hi everyone! 👋
I’m trying to implement tag-based caching in Cloudflare Workers. Specifically:
- How can I set cache tags for responses in a worker?
- Is there a way to purge cached items by tag programmatically within Workers or through the API?
Any guidance, examples, or resources would be much appreciated! Thanks in advance! 😊
1 replies
CDCloudflare Developers
•Created by jam_zaw on 9/19/2024 in #workers-help
CF-Worker and MongoDB connection and performance is very slow
I'm working with Cloudflare Workers and MongoDB, but I'm noticing that the connection and performance are really slow. Has anyone else experienced this, or know how to optimize the connection and improve the performance?
Any tips or advice would be appreciated! 🙏
3 replies
CDCloudflare Developers
•Created by jam_zaw on 7/30/2024 in #workers-help
I get 'undefined' when i get a certificate from the mtls_certificates
I am trying to call/fetch a url and pass along a certificate as described here:
https://developers.cloudflare.com/workers/runtime-apis/bindings/mtls/
I uploaded the certificate to my worker and i already added the following to the wrangler.toml
mtls_certificates = [
{ binding = "MY_CERT", certificate_id = "0805d62bxxxxxcdfdd5d6c" }
]
however the
return await environment.MY_CERT.fetch(endpoint_url)
not working and when i console out the MY_CERT I get "undefined"2 replies