caching_middleware: removed unnecessary escape in regex

Found by eslint with "no-useless-escape"
This commit is contained in:
muxator 2018-08-14 19:33:10 +02:00
parent d499e1b046
commit 6d5a6cf795

View file

@ -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']