1.0.3 • Published 8 months ago

@anthro.id/express-cache-control v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

express-cache-controller

An updated version of Mousius/express-cache-controller.

Differences

  • Supports TypeScript types.
  • Supports immutable option.

Examples

app.use(cacheControl({ public: true }));

// If you want to modify the cache control header on-the-fly
app.use((req, res, next) => {
  res.cacheControl.immutable = true;
})

For more information about the API, please visit the origin of the module.

License

MIT

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago