Wildcard subdomain cache manipulation issue

have a worker with two routes:

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 => {

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

what is wrong?

Apperently, the issue was caused by a POST request instead of a FETCH request.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.