UNPKG

@anthro.id/express-cache-control

Version:

Apply a cache control header through Express middleware.

4 lines (3 loc) 267 B
import type { IncomingMessage, ServerResponse } from "http"; import type { CacheControlOptions } from "../index"; export default function cacheControl(options?: CacheControlOptions): (req: IncomingMessage, res: ServerResponse, next: (err?: unknown) => void) => void;