Quantcast
Viewing latest article 2
Browse Latest Browse All 3

How frequently do servers use chunked encoding for various content types?

Steve Souders wrote:

Why isn't it higher? This is especially important for HTML - since HTML is parsed in streaming fashion.

I tried digging into this further by looking at the Server response header for HTML requests:

SELECT mimetype, resp_server, resp_transfer_encoding, cnt, size, 
  ROUND(ratio*100) as percent FROM (
    SELECT mimeType, resp_server, resp_transfer_encoding, cnt, size, 
      RATIO_TO_REPORT(size) OVER(PARTITION BY mimeType) ratio 
    FROM (
      SELECT mimeType, resp_server, resp_transfer_encoding, 
        count(1) as cnt, sum(respSize) as size
      FROM [httparchive:runs.2015_04_15_requests] 
      WHERE mimeType like "%html%" and resp_transfer_encoding like "%chunked%"
      GROUP by resp_server, mimeType, resp_transfer_encoding
      HAVING cnt > 10000
    ) 
)
ORDER BY percent desc

[FYI - I had to add the "httparchive:" prefix to your query to make it work: "FROM [httparchive:runs.2015_04_15_requests]".]

The results are kinda interesting:
Image may be NSFW.
Clik here to view.

Why is Apache so high?
Do proxies like Cloudflare not support chunked encoding?

Read full topic


Viewing latest article 2
Browse Latest Browse All 3

Trending Articles