mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-08 03:02:03 +01:00
make the regex more clear
This commit is contained in:
parent
a11f5c1378
commit
0dbec84794
1 changed files with 1 additions and 1 deletions
|
@ -196,7 +196,7 @@ CachingMiddleware.prototype = new function () {
|
||||||
var statusCode = responseCache[cacheKey].statusCode;
|
var statusCode = responseCache[cacheKey].statusCode;
|
||||||
|
|
||||||
var pathStr = CACHE_DIR + 'minified_' + cacheKey;
|
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';
|
pathStr = pathStr + '.gz';
|
||||||
headers['content-encoding'] = 'gzip';
|
headers['content-encoding'] = 'gzip';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue