Comparing version 2.1.0 to 2.1.1
@@ -97,5 +97,2 @@ 'use strict' | ||
const fresh = this.request.fresh | ||
if (fresh) this.response.status = 304 | ||
const obj = { | ||
@@ -108,2 +105,5 @@ body, | ||
const fresh = this.request.fresh | ||
if (fresh) this.response.status = 304 | ||
if (compressible(obj.type) && this.response.length >= threshold) { | ||
@@ -110,0 +110,0 @@ obj.gzip = yield compress(body) |
{ | ||
"name": "koa-cash", | ||
"description": "HTTP response caching for Koa", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"dependencies": { | ||
@@ -17,3 +17,3 @@ "bluebird": "^3.1.1", | ||
"mocha": "^3.1.2", | ||
"standard": "^7.0.0", | ||
"standard": "^8.6.0", | ||
"supertest": "^1.1.0" | ||
@@ -20,0 +20,0 @@ }, |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0