From 0dbec84794abdb90486109a0c6031d41a3136858 Mon Sep 17 00:00:00 2001 From: webzwo0i Date: Sat, 21 Nov 2020 01:48:43 +0100 Subject: [PATCH] make the regex more clear --- src/node/utils/caching_middleware.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; }