Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

145
Views
Cloudflare Workers: Wildcard subdomain cache manipulation issue

--This question is for cloudflare workers--

have a worker with two routes: *.example.com* example.com/app

When I attempt to manipulate the cache of foo.example.com/bar from a wildcard subdomain, there are no errors. However, when I manipulate/get the cache of foo.example.com/bar from example.com/app, undefined is returned

My code looks something like this:

addEventListener("fetch", event => {
  event.respondWith(handleRequest(event.request))
})

async function handleRequest(request) {
  const cache = caches.default;
  return new Response("cache: " + await cache.match('https://foo.exapmle.com/bar')) 
}

what is wrong?

about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!