Like this? ```ts // Only default cache can be purged via API const cache = caches.default; await ca

Like this?
// Only default cache can be purged via API
const cache = caches.default;

await cache.put(`https://fake.host/${userId}`, Response.json(userData, {
  headers: {
    "cache-tag": "user"
    // Other headers
  }
}));
Was this page helpful?