restify-cache-headers
Automatically creates a cache of ETags upon a request of a changed route in a restify application and adds ETag
and Last-Modified
headers to the response.
Created to work with restify.plugins.conditionalRequest()
Installation
npm i restify-cache-headers
Usage
const restify = const etagCache = const server = restify // IMPORTANT: Include the check before conditionalRequest pluginserverserver // This listener is needed to add previously uncached ETags to the cacheserver
Options
Passed onto etag