cache-control-parser
Version:
A humble cache-control parser
15 lines (14 loc) • 372 B
TypeScript
export interface CacheControl {
"max-age"?: number;
"s-maxage"?: number;
"stale-while-revalidate"?: number;
"stale-if-error"?: number;
public?: boolean;
private?: boolean;
"no-store"?: boolean;
"no-cache"?: boolean;
"must-revalidate"?: boolean;
"proxy-revalidate"?: boolean;
immutable?: boolean;
"no-transform"?: boolean;
}