An open API service indexing awesome lists of open source software.

https://github.com/holidaycheck/koa-prevent-caching

Set appropriate response headers to prevent caching.
https://github.com/holidaycheck/koa-prevent-caching

caching koa middleware

Last synced: 3 months ago
JSON representation

Set appropriate response headers to prevent caching.

Awesome Lists containing this project

README

        

# koa-prevent-middleware

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

## Usage

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

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