koa-prevent-caching

Set appropriate response headers to prevent caching.

Usage no npm install needed!

<script type="module">
  import koaPreventCaching from 'https://cdn.skypack.dev/koa-prevent-caching';
</script>

README

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);