@drupflare/spool - v0.1.0
    Preparing search index...

    Type Alias ProxyOptions

    what spoolProxy takes

    type ProxyOptions = {
        exposeTags?: boolean;
        fetch?: (request: Request) => Promise<Response>;
        ignore?: readonly RegExp[];
        maxBytes?: number;
        maxRemembered?: number;
        maxTags?: number;
        origin: string | URL;
        publicCookies?: readonly string[];
        purgeSecret?: string;
        routes?: readonly ProxyRoute[];
        spool: Omit<SpoolOptions, "routes">;
        trim?: TrimManifest;
    }
    Index
    exposeTags?: boolean

    keep the tag headers on what the browser receives; default false

    fetch?: (request: Request) => Promise<Response>

    how requests reach the origin; default global fetch. A Workers service binding passes its fetch

    ignore?: readonly RegExp[]

    patterns blanked before a page is hashed, such as a per-render form token

    maxBytes?: number

    largest page body kept, in bytes; default 2 MiB

    maxRemembered?: number

    most pages whose last body hash is remembered, the oldest going first; default 10,000

    maxTags?: number

    most tags one response may name before it is not kept; default 512

    origin: string | URL

    the origin to forward to, such as https://origin.internal; no path

    publicCookies?: readonly string[]

    cookie names that carry no identity, such as a bot-check or load-balancer cookie: they do not make a request ineligible, and setting them does not clear the device; default none

    purgeSecret?: string

    the shared secret POST /.spool/purge requires; without one every purge is refused

    routes?: readonly ProxyRoute[]

    routes that override the default of one public assembly route per path; they match first

    spool: Omit<SpoolOptions, "routes">

    the options createSpool takes, minus routes: the worker's route list is fixed when the spool is created, and the proxy puts its own catch-all route there

    trimmed stylesheets from buildTrimManifest. A same-origin stylesheet in the manifest is answered with its trimmed text when the origin's bytes still hash to the manifest's source, and every HTML page is checked against the guard first. Without it nothing is trimmed.