Skip to content

futur3/koa-no-cache

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM version Build status Test coverage License Dependency status

koa-no-cache

no cache for koa apps

example

Adding no cache header on some paths or types

var noCache = require('koa-no-cache'),
  koa = require('koa'),
  app = koa();

app.use(noCache({
  paths: ['/users/(.*)'],
  types: ['manifest']
}));

Adding no cache header globally

var noCache = require('koa-no-cache'),
  koa = require('koa'),
  app = koa();

app.use(noCache({
  global: true
}));

License

MIT

About

[koa-no-cache] no cache for some paths or types

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%