AgentCord
AgentCord
CDCloudflare Developers
Created by AgentCord on 11/7/2024 in #workers-help
Force country
I need to make a fetch request to external API that accepts only Netherlands ips. How do I run a worker only in AMS datacenter and not the user’s closest datacenter, so I could make a fetch request? I heard of resolveOverride hack but I dont get it how to set it up??? Please help
4 replies
CDCloudflare Developers
Created by AgentCord on 9/12/2024 in #general-help
NextJS: cf-cache-status: miss for every css and js file
No description
2 replies
CDCloudflare Developers
Created by AgentCord on 9/2/2024 in #workers-help
Abort signal is not triggered
When I use this code, it doesn't trigger when user disconnects from the worker. But it shows an error X [ERROR] Uncaught (in promise) Error: Network connection lost. in the console somehow.
request.signal.addEventListener('abort', () => {
console.log(123)
});
request.signal.addEventListener('abort', () => {
console.log(123)
});
What's the problem?
8 replies
CDCloudflare Developers
Created by AgentCord on 8/29/2024 in #workers-help
How to cache a global data?
For example, I want to fetch bitcoin price rate from some website and save it for 5 minutes in a worker environment for every request, how do I do cache it? I'm new to this
3 replies