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

    Module ops/page-mirror

    Mirrors rendered pages to R2 so a custom domain can answer them without invoking the Worker.

    R2 reads are metered (10M Class B a month, 333,333/day against the 100,000/day Worker ceiling), so mirror to the optimum, not everything: call optimalOffWorker() instead of hardcoding a share. CDN absorption is zero until an operator adds a cache rule (Cloudflare decides HTML eligibility by extension, so an origin cache-control cannot buy it back).

    • scripts/measure/free-envelope.ts for the model this feeds
    • scripts/measure/cdn-absorption.ts for where its cdnAbsorption comes from
    MirrorablePage
    PageMirrorDrain
    PageMirrorSql
    MIRROR_STRIKES
    drainPageMirrors
    ensurePageMirrorTable
    orderByViews
    pageMirrorDepth
    pageMirrorKey
    queuePageMirror
    staleGenerationPrefix