update doc

This commit is contained in:
加里
2014-09-03 15:20:57 +08:00
parent c5624a3c6b
commit e38d5fe7b1
4 changed files with 28 additions and 27 deletions

View File

@@ -1,6 +1,14 @@
//rule scheme :
module.exports = {
replaceRequestOption : function(req,option){
var newOption = option;
delete newOption.headers['if-none-match'];
delete newOption.headers['if-modified-since'];
return newOption;
},
replaceResponseHeader: function(req,res,header){
header = header || {};
header["Cache-Control"] = "no-cache, no-store, must-revalidate";