Enable text compression
Description
Web browsers often communicate with web servers in a human readable format. These can be HTML, JavaScript and/or CSS files and REST requests which can return a response in JSON. This human readable communication is redundant and, as such, can be compressed to save bandwidth.
Web browsers and servers can communicate the compression format dynamically via the "Accept-Encoding"/"Content-Encoding" HTTP Headers. This allows the communication to dynamically switch to compression formats both sides support.
Solution
Enable all supported compression formats on the server, allowing clients to use the best available format.
SCI Impact
SCI = (E * I) + M per R
Software Carbon Intensity Spec
Enabling text compression will impact SCI as follows:
E
: Reducing emissions by reducing the amount of electricity needed while transferring and processing text filesM
: Reducing the size of the files can also reduce the storage requirements of the web page on the server
Assumptions
- The use of web servers that allow compression formats