/** * This keeps both the CDN and browsers from caching the resource. * https://docs.fastly.com/en/guides/cache-control-tutorial#do-not-cache */ export declare const NoCache = "private, no-store"; export type BuildNoCacheHeaderOpts = { totalCacheLife: 0; }; export type BuildFullCacheHeaderOpts = { staleIfError: number; staleWhileRevalidate: number; totalCacheLife: number; }; export type BuildCacheHeaderOpts = BuildFullCacheHeaderOpts | BuildNoCacheHeaderOpts; /** * Function that builds a proper cache-header string with `max-age`, * `stale-while-revalidate`, `stale-if-error` values. If the `totalCacheLife` * option or calculated `max-age` is 0, then will set a CDN-compatible * non-caching header. */ export declare function buildCacheHeader(opts: BuildNoCacheHeaderOpts): string; export declare function buildCacheHeader(opts: BuildFullCacheHeaderOpts): string; //# sourceMappingURL=index.d.ts.map