static isContentEncoded(record) {
    // FYI: older devtools logs (like our test fixtures) seems to be lower case, while modern logs
    // are Cased-Like-This.
    const patterns = global.isLightrider ? [
      /^x-original-content-encoding$/i,
    ] : [
      /^content-encoding$/i,
      /^x-content-encoding-over-network$/i,
    ];
    const compressionTypes = ['gzip', 'br', 'deflate', 'zstd'];
    return record.responseHeaders.some(header =>
      patterns.some(p => header.name.match(p)) && compressionTypes.includes(header.value)
    );
  }
Returns whether the network request was sent encoded.
@param {NetworkRequest} record
@return {boolean}