fastify-no-cache
v0.2.1
Published
Fastify plugin to disable client-side caching
Downloads
9
Maintainers
Readme
fastify-no-cache
Fastify plugin to disable client-side caching
Why?
You may know no-cache as a no-cache middleware used in helmet. And you could use it as a middleware in fastify also. So why i made this plugin?
You may find the reason in benchmark result and wish you like it. :)
Install
Via npm:
npm i fastify-no-cache
Via yarn:
yarn add fastify-no-cache
Usage
const fastify = require('fastify');
const fastifyNoCache = require('fastify-no-cache');
const app = fastify();
app.register(fastifyNocache);
app.listen(3000, err => {
if (err) throw err;
});
Changelog
- 0.2.0
- Add test case
- Add code coverage
- Add benchmarks
- 0.1.0:
- Init version