http-directives
Version:
A TypeScript-friendly package that provides strongly-typed HTTP constants
20 lines (18 loc) • 790 B
text/typescript
declare class CacheControl {
static readonly MAX_AGE = "max-age";
static readonly S_MAXAGE = "s-maxage";
static readonly MIN_FRESH = "min-fresh";
static readonly MAX_STALE = "max-stale";
static readonly PUBLIC = "public";
static readonly PRIVATE = "private";
static readonly NO_STORE = "no-store";
static readonly NO_CACHE = "no-cache";
static readonly MUST_REVALIDATE = "must-revalidate";
static readonly IMMUTABLE = "immutable";
static readonly NO_TRANSFORM = "no-transform";
static readonly ONLY_IF_CACHED = "only-if-cached";
static readonly PROXY_REVALIDATE = "proxy-revalidate";
static readonly STALE_IF_ERROR = "stale-if-error";
static readonly STALE_WHILE_REVALIDATE = "stale-while-revalidate";
}
export { CacheControl };