mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-27 10:56:16 -04:00
caching_middleware: fix gzip compression not triggered
This commit is contained in:
parent
5e986d1d9e
commit
22039fcf91
1 changed files with 1 additions and 1 deletions
|
@ -196,7 +196,7 @@ CachingMiddleware.prototype = new function () {
|
|||
var statusCode = responseCache[cacheKey].statusCode;
|
||||
|
||||
var pathStr = CACHE_DIR + 'minified_' + cacheKey;
|
||||
if (supportsGzip && (headers['content-type'] || '').match(/^text\//)) {
|
||||
if (supportsGzip && (headers['content-type'] || '').match(/^application\/javascript/)) {
|
||||
pathStr = pathStr + '.gz';
|
||||
headers['content-encoding'] = 'gzip';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue