Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

express-response-cache

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-response-cache - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

README.md

3

index.js

@@ -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)

3

package.json
{
"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": {}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc