8 points | by eatonphil a day ago
2 comments
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...
This is interesting, but how would this work for different files? Like merging index.html, style.css, index.js in a single response.
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...
This is interesting, but how would this work for different files? Like merging index.html, style.css, index.js in a single response.