diff --git a/lib/ExpressRedisCache/route.js b/lib/ExpressRedisCache/route.js index 1aa5e0e..a2658ef 100644 --- a/lib/ExpressRedisCache/route.js +++ b/lib/ExpressRedisCache/route.js @@ -165,7 +165,7 @@ module.exports = (function () { /** if it's cached, display cache **/ - if ( cache.length && cache[0].body != null ) { + if ( cache.length && cache[0].body != null && cache[0].status) { res.contentType(cache[0].type || "text/html"); res.status(cache[0].status); if(binary){ //Convert back to binary buffer