cacheable-response
Advanced tools
Comparing version 2.7.1 to 2.7.2
@@ -5,2 +5,9 @@ # Changelog | ||
### 2.7.2 (2021-08-25) | ||
### Bug Fixes | ||
* etag calculation ([9735c69](https://github.com/Kikobeats/cacheable-response/commit/9735c697070c5d82376d9a8a5ee02d67f27970eb)) | ||
### 2.7.1 (2021-08-25) | ||
@@ -7,0 +14,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://nicedoc.io/Kikobeats/cacheable-response", | ||
"version": "2.7.1", | ||
"version": "2.7.2", | ||
"main": "src/index.js", | ||
@@ -8,0 +8,0 @@ "author": { |
@@ -66,3 +66,3 @@ 'use strict' | ||
const etag = cachedEtag || getEtag(serialize(data)) | ||
const etag = cachedEtag || getEtag(serialize(result)) | ||
const ifNoneMatch = req.headers['if-none-match'] | ||
@@ -69,0 +69,0 @@ const isModified = etag !== ifNoneMatch |
40346