DefinitelyTyped/types/koa-cache-control/koa-cache-control-tests.ts
2017-03-24 14:27:52 -07:00

20 lines
389 B
TypeScript

import * as Koa from "koa";
import * as cacheControl from "koa-cache-control";
const app = new Koa();
app.use(cacheControl());
app.use(cacheControl({}));
app.use(cacheControl({
private: true,
public: true,
noStore: true,
noCache: true,
noTransform: true,
mustRevalidate: true,
staleIfError: 0,
staleWhileRevalidate: 0,
maxAge: 0,
sMaxAge: 0,
}));