I know the answer about dynamic compression (#21). What about serving precompressed static files like the nginx 's gzip_static module (https://nginx.org/en/docs/http/ngx_http_gzip_static_module.html)?
Basically, if the client asks for /styles.css while indicating in Accept-Encoding that it's willing to accept gzip and there's /styles.css.gz file on disk, the server takes this .gz file and serves it to the client with a corresponding Content-Encoding header.
I know the answer about dynamic compression (#21). What about serving precompressed static files like the nginx 's
gzip_staticmodule (https://nginx.org/en/docs/http/ngx_http_gzip_static_module.html)?Basically, if the client asks for
/styles.csswhile indicating inAccept-Encodingthat it's willing to accept gzip and there's/styles.css.gzfile on disk, the server takes this .gz file and serves it to the client with a correspondingContent-Encodingheader.