McGuireR
McGuireR
CDCloudflare Developers
Created by McGuireR on 4/29/2025 in #general-help
Problem with cache API in worker.
@Chaika, thank you for your reply.
True, mcguirer.com is not a real site. I was just using that name to anonymize my post - kinda like www.example.com. As for the DNS entries... In my company's official DNS, which is NOT Cloudflare, I have a CNAME record for mcguirer.com that references mcguirer.com.cdn.cloudflare.net. Then in my CF DNS, I have an A record for mcguirer.com with an IP addr of the site that serves the pages that aren't served by the NextJS pages app. So all requests for mcguirer.com go to Cloudflare. The request for URLs that are serviced by the pages app are routed to the worker. Any URLs that shouldn't go to the pages app, won't go to the worker and instead fall through to the non-cloudflare site at the IP address in the CF DNS A rec. All that has been working perfectly fine for over a year. The only issue I'm having is that the pages served by the pages app don't seem to be cached at all.
6 replies
CDCloudflare Developers
Created by McGuireR on 4/29/2025 in #general-help
Problem with cache API in worker.
Derp, I see there's a separate workers-help channel, should I move this question there? Is there a way to that's easier than editing it here and copy-and-pasting?
6 replies
CDCloudflare Developers
Created by McGuireR on 3/7/2024 in #general-help
Multiple URL Rewrite rules aren't triggering.
Never mind... All I have to do is RTFM.
https://developers.cloudflare.com/ruleset-engine/about/rules/#rule-evaluation:
If a rewrite URL rule #1 updates the URI path or the query string of a request, rewrite URL rule #2 will not take these earlier changes into consideration.
2 replies