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.
- Host: GitHub
- URL: https://github.com/holidaycheck/koa-prevent-caching
- Owner: holidaycheck
- License: mit
- Created: 2018-03-23T14:25:54.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-12T09:22:13.000Z (over 6 years ago)
- Last Synced: 2025-02-07T19:06:06.022Z (4 months ago)
- Topics: caching, koa, middleware
- Language: JavaScript
- Size: 6.84 KB
- Stars: 1
- Watchers: 12
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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);
```