Skip to content

anthro-id/express-cache-control

Repository files navigation

express-cache-control

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

Differences

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

About

Apply a cache control header through Express middleware.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors