Revert "Remove caching, creates more problems than it solves"

This reverts commit a4b9427896.
This commit is contained in:
Peter 'Pita' Martischka 2011-06-30 12:40:37 +01:00
parent 5c7d96b469
commit 946568d3a3
2 changed files with 9 additions and 7 deletions

View file

@ -225,7 +225,7 @@ exports.padJS = function(req, res)
pathStr = path.normalize(__dirname + "/../var/minified_pad.js");
}
res.sendfile(pathStr);
res.sendfile(pathStr, { maxAge: server.maxAge });
})
}
//minifying is disabled, so load the files with jquery