express-response-cache
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -10,2 +10,5 @@ module.exports = maxAge => { | ||
if(cacheUpdatedAt && Date.now() < cacheUpdatedAt + maxAge * 1000){ | ||
Object.keys(headers).forEach(key => { | ||
res.setHeader(key, headers[key]) | ||
}) | ||
res.writeHead(statusCode, statusMessage, headers) | ||
@@ -12,0 +15,0 @@ res.write(body) |
{ | ||
"name": "express-response-cache", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "", | ||
@@ -11,3 +11,4 @@ "main": "index.js", | ||
"license": "MIT", | ||
"homepage": "https://github.com/mainTao/express-response-cache", | ||
"dependencies": {} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
1553
4
40
1
9