Cache is not shared between workers. Load balancing may therefore give you unexpected responses. To use the same worker, pass the same X-Session-ID header for all requests that should use the same cache.

interface Cache {
    cached_at: number;
    cached_until: number;
    status: "hit" | "miss" | "awaited";
}

Properties

cached_at: number

When this resource was cached.

cached_until: number

When this resource's cache expires.

status: "hit" | "miss" | "awaited"

Whether the cache was hit. Either "hit", "miss", or "awaited" (resource was already being requested by another client)