Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Version 3.1.9
-------------
* Compression methods updated to include brotli.

Version 3.1.8
-------------
* Custom CDNs list entry for PhantomJS. Issue #79
Expand Down
4 changes: 2 additions & 2 deletions src/common/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ YSLOW.Component.prototype.populateProperties = function (resolveRedirect, ignore

content_length = that.headers['content-length'];

// gzip, deflate
// gzip, deflate, brotli
encoding = YSLOW.util.trim(that.headers['content-encoding']);
if (encoding === 'gzip' || encoding === 'deflate') {
if (encoding === 'gzip' || encoding === 'deflate' || encoding === 'br') {
that.compressed = encoding;
that.size = (that.body.length) ? that.body.length : NULL;
if (content_length) {
Expand Down