文件名称:fastify-no-cache:固定插件以禁用客户端缓存
文件大小:58KB
文件格式:ZIP
更新时间:2024-05-23 00:34:51
helmet fastify-plugin no-cache JavaScript
固定无缓存 固定插件以禁用客户端缓存 为什么? 您可能知道是使用的。 您也可以将其用作fastify的中间件。 那么,为什么我做了这个插件? 您可能会在找到原因,并希望您喜欢它。 :) 区别 此插件已通过所有测试用例。 且选项没有差异。 安装 通过npm: npm i fastify-no-cache 通过纱: 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 ) thro
【文件预览】:
fastify-no-cache-master
----.travis.yml(80B)
----.eslintrc.yml(34B)
----package.json(1KB)
----test()
--------test.js(801B)
----LICENSE(1KB)
----package-lock.json(246KB)
----benchmarks()
--------config.js(87B)
--------helmet.js(232B)
--------pure.js(181B)
--------self.js(236B)
--------benchmark.txt(745B)
--------benchmark.js(1KB)
----ava.config.js(184B)
----src()
--------index.js(458B)
----.prettierrc.yml(218B)
----.coveralls.yml(70B)
----.gitignore(914B)
----README.md(2KB)
----.editorconfig(193B)