diff --git a/src/node/utils/caching_middleware.js b/src/node/utils/caching_middleware.js index beea15bff..6df4faa97 100644 --- a/src/node/utils/caching_middleware.js +++ b/src/node/utils/caching_middleware.js @@ -196,7 +196,7 @@ CachingMiddleware.prototype = new function () { var statusCode = responseCache[cacheKey].statusCode; var pathStr = CACHE_DIR + 'minified_' + cacheKey; - if (supportsGzip && /^application\/javascript/.test(headers['content-type'])) { + if (supportsGzip && /application\/javascript/.test(headers['content-type'])) { pathStr = pathStr + '.gz'; headers['content-encoding'] = 'gzip'; }