drupflare/worker - v1.0.4
    Preparing search index...

    Function readStalePage

    • A page from a previous generation plus how far back it was; the answer carries x-cfw-edge: STALE (x-cfw-cache: KV alone also matches the object's AGED answer).

      Parameters

      • env: PageStoreEnv | undefined
      • site: string
      • generation: number
      • path: string
      • opts: { depth?: number; neverStale?: string; nowMs?: number } = {}

      Returns Promise<{ behind: number; page: StoredPage } | undefined>