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

    Function verifyShellFor

    • Proves a stored shell against one visitor's own harvest, and answers them from it.

      It compares harvest to harvest: a harvest empties the render bin, so its holes lack the #attached libraries an ordinary render inlines and the asset sets differ by construction. The cost is 40 to 52 rows written, break-even at 4 to 13 requests (shell-verify-cost.spec.ts measures it). The harvest body is Drupal's own BigPipe stream and is what the visitor receives.

      Parameters

      • site: SitePhpDurableObject
      • path: string
      • cookie: string
      • origin: string
      • row: { harvested_at: number; permissions_hash: string; shell: string }

      Returns Promise<ShellAssembly | undefined>