Can a worker domain own its cache?

cache.match() always returns null. Am I using cache incorrectly? I'm trying to
  • check for cache.match(request.url) (request.url = workerDomain/data?type=1)
  • if no match, generate data via expensive function
  • waitFor(cache.put(request.url, new Response(data)
It doesn't work. Is that because there's no host other than a worker? Is a 3rd-party host required to use cache? Can a worker use any arbitrary cache key within its domain?
Was this page helpful?