YUKI Hiroshi
null+****@clear*****
Thu Mar 20 17:44:35 JST 2014
YUKI Hiroshi 2014-03-20 17:44:35 +0900 (Thu, 20 Mar 2014) New Revision: c74385c5451d0622b26822c0c177fae8054692a3 https://github.com/droonga/express-droonga/commit/c74385c5451d0622b26822c0c177fae8054692a3 Message: Set "X-Droonga-Cached=yes" for cached contents Modified files: lib/response-cache/index.js Modified: lib/response-cache/index.js (+1 -0) =================================================================== --- lib/response-cache/index.js 2014-03-20 17:44:24 +0900 (7505b83) +++ lib/response-cache/index.js 2014-03-20 17:44:35 +0900 (1260312) @@ -10,6 +10,7 @@ function sendCachedResponse(response, cached) { Object.keys(cached.headers).forEach(function(key) { response.setHeader(key, cached.headers[key]); }); + response.setHeader('X-Droonga-Cached', 'yes'); cached.body.forEach(function(chunk) { response.write(chunk.data, chunk.encoding); }); -------------- next part -------------- HTML����������������������������...Download