Fastify plugin to disable client-side caching
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. :)
This plugin has passed all no-cache test cases. And no difference in options.
Via npm:
npm i fastify-no-cache
Via yarn:
yarn add fastify-no-cache
const fastify = require('fastify');
const fastifyNoCache = require('fastify-no-cache');
const app = fastify();
app.register(fastifyNocache);
app.listen(3000, err => {
if (err) throw err;
});
- 0.2.0
- Add test case
- Add code coverage
- Add benchmarks
- 0.1.0:
- Init version