/koa-prevent-caching

Set appropriate response headers to prevent caching.

Primary LanguageJavaScriptMIT LicenseMIT

koa-prevent-middleware

A middleware for koa to set appropriate response headers that prevent clients from caching the response.

Usage

const Koa = require('koa');
const preventCaching = require('koa-prevent-caching');

var app = new Koa();
app.use(preventCaching);