g000m
CDCloudflare Developers
•Created by g000m on 1/3/2024 in #general-help
Has anyone noticed jump_start not working when adding a domain via Terraform?
I'm pretty new to Terraform; this works but jump_start is ignored
resource "cloudflare_zone" "setup_zones" {
for_each = { for domain in local.flattened_domains : domain => domain }
zone = each.key
account_id = var.account_id
jump_start = true
}
2 replies
CDCloudflare Developers
•Created by g000m on 10/9/2023 in #workers-help
Can a worker domain own its cache?
cache.match() always returns null. Am I using cache incorrectly? I'm trying to
- check for cache.match(request.url) (request.url = workerDomain/data?type=1)
- if no match, generate data via expensive function
- waitFor(cache.put(request.url, new Response(data)
It doesn't work. Is that because there's no host other than a worker? Is a 3rd-party host required to use cache? Can a worker use any arbitrary cache key within its domain?
4 replies
CDCloudflare Developers
•Created by g000m on 5/12/2023 in #general-help
redirect app DNS requests when using CF Gateway
1 replies
CDCloudflare Developers
•Created by g000m on 1/25/2023 in #workers-help
override a worker route with a page/redirect rule
I have a worker at domain.com/route/*
and need to create a redirect at domain.com/route/page/
Can this be done with a Rule that overrides that exact path? Or do I have no option but to match that in the worker code?
3 replies