4 ms·
Its generally used as a data transfer compression system. So the web server needs to compress the data before its sent to the browser. If you did it at the web
by samschooler 8y ago
Its generally used as a data transfer compression system. So the web server needs to compress the data before its sent to the browser. If you did it at the web app level (client/browser side), the data would already be transferred so there are no size savings.
- tracker1 8y agoMany web servers will serve file.ext.(gz|br) as a pre-compressed option. In order for brotli to beat gzip on size, you need more CPU time, so it's best if precompressed. This also means it's not really an option for dynamic content.