mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-28 19:52:53 +00:00
20 lines
389 B
TypeScript
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,
|
|
}));
|