fastify-no-cache

0.2.1 • Public • Published

fastify-no-cache

Build Status Code coverage Code style Dependency Status Dev Dependency Status NPM version NPM downloads NPM license

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

Package Sidebar

Install

npm i fastify-no-cache

Weekly Downloads

0

Version

0.2.1

License

MIT

Unpacked Size

5.23 kB

Total Files

4

Last publish

Collaborators

  • poppinl