koa-prevent-caching

v1.0.2
Set appropriate response headers to prevent caching.
koa caching middleware

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);
npm i koa-prevent-caching

Metadata

  • MIT
  • >=8.0.0
  • Mathias Schreck
  • released 10/12/2018

Downloads