Astro Node.js Fastify adapter
    Preparing search index...

    Interface CacheOptions

    Can be used to define the "Cache-Control" header for "public" assets.

    If these options are absent and no "Cache-Control" header is defined in the DefaultHeaderOptions#assets, the cache control header for the "public" assets will be: Cache-Control: public, max-age=0.

    interface CacheOptions {
        immutable: boolean;
        maxAge: number;
        mustRevalidate: boolean;
        noTransform: boolean;
        proxyRevalidate: boolean;
        staleIfError: number;
        staleWhileRevalidate: number;
    }
    Index

    Properties

    immutable: boolean
    maxAge: number
    mustRevalidate: boolean

    Controls the "must-revalidate" directive. Documentation: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control#must-revalidate

    noTransform: boolean
    proxyRevalidate: boolean

    Controls the "proxy-revalidate" directive. Documentation: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control#proxy-revalidate

    staleIfError: number
    staleWhileRevalidate: number

    Controls the "stale-while-revalidate" directive. Documentation: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control#stale-while-revalidate