Compression and Concatenation on the Web

(theconsensus.dev)

8 points | by eatonphil 23 hours ago

2 comments

  • alexandrehtrb 4 minutes ago
    This is interesting, but how would this work for different files? Like merging index.html, style.css, index.js in a single response.
  • pveierland 19 minutes ago
    I'd love to use more brotli and zstd, but for some reason browsers seem to support these in fetch requests but not in the DecompressionStream API, meaning that you need to bundle your own decompressors if you want to do this for other use-cases.

    https://developer.mozilla.org/en-US/docs/Web/API/Decompressi...