YUKI Hiroshi
null+****@clear*****
Thu Mar 20 18:43:47 JST 2014
YUKI Hiroshi 2014-03-20 18:43:47 +0900 (Thu, 20 Mar 2014) New Revision: df144bc1fbdb7e0e78821bdf1ac3e837c310fffa https://github.com/droonga/express-droonga/commit/df144bc1fbdb7e0e78821bdf1ac3e837c310fffa Message: Activate response cache for any GET requests Modified files: application.js Modified: application.js (+6 -0) =================================================================== --- application.js 2014-03-20 18:41:34 +0900 (174f8d3) +++ application.js 2014-03-20 18:43:47 +0900 (f9dd6e5) @@ -2,6 +2,7 @@ var express = require('express'), droonga = require('./index'), + cache = require('./lib/response-cache'), http = require('http'), options = require('commander'); @@ -29,6 +30,11 @@ application.configure(function() { secret: 'secret key', store: sessionStore })); + application.use(cache({ + rules: [ + { regex: /./ } + ] + })); }); application.droonga({ -------------- next part -------------- HTML����������������������������... Download