caching_middleware: removed unnecessary escape in regex
Found by eslint with "no-useless-escape"
This commit is contained in:
parent
d499e1b046
commit
6d5a6cf795
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ CachingMiddleware.prototype = new function () {
|
|||
(req.get('Accept-Encoding') || '').indexOf('gzip') != -1;
|
||||
|
||||
var path = require('url').parse(req.url).path;
|
||||
var cacheKey = (new Buffer(path)).toString('base64').replace(/[\/\+=]/g, '');
|
||||
var cacheKey = (new Buffer(path)).toString('base64').replace(/[/+=]/g, '');
|
||||
|
||||
fs.stat(CACHE_DIR + 'minified_' + cacheKey, function (error, stats) {
|
||||
var modifiedSince = (req.headers['if-modified-since']
|
||||
|
|
Loading…
Reference in a new issue