How long the CDN should cache the content before it expires.
This is used to set the s-maxage directive in the cache control header.
latest
claytercek/purgeCDN agnostic client for creating cache headers and purging cache contents.
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers




JSR Score
94%
Published
4 months ago (0.1.5)
Add Package
deno add jsr:@purge/core
Import symbol
import { type GetCacheHeadersParams } from "@purge/core";
Import directly with a jsr specifier
import { type GetCacheHeadersParams } from "jsr:@purge/core";
Add Package
pnpm i jsr:@purge/core
pnpm dlx jsr add @purge/core
Import symbol
import { type GetCacheHeadersParams } from "@purge/core";
Add Package
yarn add jsr:@purge/core
yarn dlx jsr add @purge/core
Import symbol
import { type GetCacheHeadersParams } from "@purge/core";
Add Package
vlt install jsr:@purge/core
Import symbol
import { type GetCacheHeadersParams } from "@purge/core";
Add Package
npx jsr add @purge/core
Import symbol
import { type GetCacheHeadersParams } from "@purge/core";
Add Package
bunx jsr add @purge/core
Import symbol
import { type GetCacheHeadersParams } from "@purge/core";