Automatic ETag-based caching middleware for Restify servers (v1.0.12, last updated 2017). Very low maintenance: no recent releases, few dependencies. Differentiator: simple drop-in middleware for restify that handles 304 responses without configuration beyond ignore lists and weak/strong ETag selection. Status: maintenance due to infrequent updates and lack of activity.
npm install restify-etag-cacheNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a restify server, applies ETag cache middleware with route/URL ignore options, and defines a sample GET route.
Review package.json and update lodash to 4.17.21+ manually; consider alternative caching solutions if security is critical.
No fix; the property names are hardcoded. Use underscore style as shown in documentation.
Set `weak: false` for strict comparison; be aware of the tradeoff.
Ensure server.use() is called before defining any routes, and that restify is properly initialized.
Set weak to false to force strong ETag comparison.