Arthur
Arthur
CDCloudflare Developers
Created by Arthur on 6/3/2024 in #general-help
How to disable human verification for cloudflare tunnels?
No description
10 replies
CDCloudflare Developers
Created by Arthur on 4/30/2023 in #workers-help
Workers fetch cache not working?
I'm using an external api, which is rate limited. But I need more requests than that the limit allows, therefore I want to use cloudflare workers to cache the request and work as a middle man. I'm using the hono framework to handle my requests (but I don't think that should affect this issue). I'm using this function to cache my requests.
export const cachedFetch = async (url: string, time = 60 * 60) =>
await fetch(url, {
cf: {
cacheTtl: time,
cacheEverything: true,
cacheKey: url,
},
});
export const cachedFetch = async (url: string, time = 60 * 60) =>
await fetch(url, {
cf: {
cacheTtl: time,
cacheEverything: true,
cacheKey: url,
},
});
But when runnin this, I'm still getting rate-limited by the external api? Even tough 1 hour is plenty below the rate limit?
5 replies