diff --git a/src/index.js b/src/index.js index dfa8a4c..4c0502d 100644 --- a/src/index.js +++ b/src/index.js @@ -81,9 +81,9 @@ module.exports = function (req, res, logFacilities, config, next) { Object.keys(properHeaders).forEach((key) => { writtenHeaders[key.toLowerCase()] = properHeaders[key]; }); - writtenStatusCode = statusCode; - res.setHeader("X-SVRJS-Cache", "MISS"); } + writtenStatusCode = statusCode; + res.setHeader("X-SVRJS-Cache", "MISS"); if (headers) { originalWriteHead( writtenStatusCode,