去る 10 月,「CHACHA20 は,公式の Apache ではすでにサポートされているのだが, Apache Lounge の 2.4.23 ではまだなのだ」と書いたのだが, 4/19 に Steffen の「Apache 2.4.26-Dev available with Openssl 1.1.0e VC14」というお知らせがあった。というわけで,今や Win 版の Apache でも CACHA20_POLY1305 が使えることと相成った。 CHACHA20-POLY1305 関連を有効にしてやるには, httpd-ssl.conf の SSLCipherSuite にそれ関係を追記して, Apache を再起動だけ。
更に, 4/26 ,今度は「Apache 2.4.26 を VC15 でビルドし, module mod_brotli を入れたよ」というアナウンスがあった。ワォ!なんて,素晴らしいんだ!このバージョンは,ここから落とせる。 VC15 でビルドされてるわけだから,Visual C++ 再頒布可能パッケージがいる。それは, vc_redist_x64 か vc_redist_x86 を落としてね。
conf file 内の前に使っていた DEFLATE 用の設定をコメントアウトし, BROTLI_COMPRESS;DEFLATE 用に新しい設定,および, mod_brotli のロード設定を書き加え, Apache を再起動。
結果は,この通り。
 Brotli に変えてから,サイトの表示が前より早くなったように思う。あくまで,体感だが。そんなわけで, cURL で速度比較をやってみた。結果は下記の通りで,体感は正しい気がするのであります。
curl.exe -k -O https://test.o6asan.com/test1.html
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   261  100   261    0     0   3346      0 --:--:-- --:--:-- --:--:--  3346
curl.exe -k -H "Accept-Encoding:gzip" -O https://test.o6asan.com/test1.html
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   204  100   204    0     0   2615      0 --:--:-- --:--:-- --:--:--  2615
curl.exe -k -H "Accept-Encoding:br" -O https://test.o6asan.com/test1.html
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   147  100   147    0     0   1884      0 --:--:-- --:--:-- --:--:--  1884
 
 
 
curl.exe -k -O https://test.o6asan.com/test2.html
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 90304  100 90304    0     0   938k      0 --:--:-- --:--:-- --:--:--  938k
curl.exe -k -H "Accept-Encoding:gzip" -O https://test.o6asan.com/test2.html
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  9536  100  9536    0     0    99k      0 --:--:-- --:--:-- --:--:--   99k
curl.exe -k -H "Accept-Encoding:br" -O https://test.o6asan.com/test2.html
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  8369  100  8369    0     0  89031      0 --:--:-- --:--:-- --:--:-- 89031
Moving to the #Brotli compression, I took benchmarks about two test files by cURL.
curl.exe -k ~を使っての速度比較ってことになるかな?https://t.co/6lnlFmbCTb— Uehara Hide (@o6asan) May 2, 2017

