New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cacheable-response

Package Overview
Dependencies
Maintainers
1
Versions
111
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cacheable-response - npm Package Compare versions

Comparing version 2.8.1 to 2.8.2

10

package.json
{
"name": "cacheable-response",
"description": "An HTTP compliant route path middleware for serving cache response with invalidation support.",
"homepage": "https://nicedoc.io/Kikobeats/cacheable-response",
"version": "2.8.1",
"homepage": "https://github.com/Kikobeats/cacheable-response",
"version": "2.8.2",
"main": "src/index.js",

@@ -78,3 +78,2 @@ "author": {

"got": "11",
"micro": "latest",
"nano-staged": "latest",

@@ -86,7 +85,6 @@ "npm-check-updates": "latest",

"standard-markdown": "latest",
"standard-version": "latest",
"test-listen": "latest"
"standard-version": "latest"
},
"engines": {
"node": ">= 10"
"node": ">= 12"
},

@@ -93,0 +91,0 @@ "files": [

2

README.md

@@ -335,2 +335,4 @@ # cacheable-response

- [Cache-Control for Civilians, by Harry Robert](https://csswizardry.com/2019/03/cache-control-for-civilians/)
- [Demystifying HTTP Caching, by Bharathvaj Ganesan](https://codeburst.io/demystifying-http-caching-7457c1e4eded).
- [Keeping things fresh with stale-while-revalidate, by Jeff Posnick](https://web.dev/stale-while-revalidate/).

@@ -337,0 +339,0 @@ ## License

@@ -47,8 +47,6 @@ 'use strict'

const { req, res } = opts
const [
raw,
{ forceExpiration, hasValue, key, isExpired, isStale }
] = await memoGet(opts)
const [raw, { forceExpiration, hasValue, key, isExpired, isStale }] =
await memoGet(opts)
if (res.finished) return
if (res.writableEnded) return

@@ -55,0 +53,0 @@ const result = (await decompress(raw)) || {}

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