cacheable-response
Advanced tools
Comparing version 2.8.1 to 2.8.2
{ | ||
"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": [ |
@@ -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)) || {} |
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
24878
17
0
344
275