0.2.1 • Published 6 years ago

fastify-no-cache v0.2.1

Weekly downloads
20
License
MIT
Repository
github
Last release
6 years ago

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