@anthro.id/express-cache-control
v1.0.5
Published
Apply a cache control header through Express middleware.
Downloads
155
Readme
express-cache-control
An updated version of Mousius/express-cache-controller.
Differences
- Supports TypeScript types.
- Supports undocumented options, such as
immutableandmust-understand.
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.
