Skip to content

Browser peer: batch object endpoint to eliminate per-block CORS preflights #1772

Open

Description

@aaj3f

Cold browser-peer reads fetch index blocks one CID per request (GET /storage/.../objects/<cid> with Authorization), and because the browser's preflight cache is keyed per-URL, every block pays its own CORS preflight — 2× round trips on exactly the path where the peer is slowest (cold crawl).

Follow-up chosen during #1715/#1733 review: a batch object route (e.g. POST /v1/fluree/storage/{ledger}/objects taking a CID list) plus client-side fetch coalescing in fluree-db-browser, so one preflighted request carries many blocks. Deliberately split out of the wasm stack PRs — it changes the server surface as well as the client.

Activity

  1. added
    enhancement
    on Sep 3, 2026
  2. added
    P3
    area:server
    on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3area:serverenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions