Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
restify-etag-cache
Advanced tools
Automatic middleware that enables client cache based on ETag header
Install the module with: npm install restify-etag-cache
It works as a middleware, so its very easy to use the library:
var restify = require('restify');
var restifyEtagCache = require('restify-etag-cache');
var server = restify.createServer();
var options = {
ignore_routes : [ '/some/route/to/ignore/:withParam' ],
ignore_urls : [ '/some/specific/url/to/ignore' ],
weak: false
};
server.use(restifyEtagCache(options));
Its all ;)
The server will reply HTTP status code 304 (Not Modified) when it detects that the client already have the latest content version.
At this time, there are only two options available:
ignore_urls (array of urls)
ignore_routes (array of routes)
weak (boolean, set to use weak etag generation or not)
FAQs
Restify ETag Cache. The easy way.
We found that restify-etag-cache demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.