From 0866e4d2bc454c3857e06605e013c3f770b36d4d Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Sat, 13 Aug 2022 14:25:49 -0700 Subject: [PATCH] Don't brotli-compress the Tor hidden service The Tor hidden service does not use TLS, so it doesn't use HTTP/2 or HTTP/3. Therefore, it can't use Brotli; statically-compressing Brotli content is just wasted CPU cycles. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ebf34c7..21a9ecc 100644 --- a/Makefile +++ b/Makefile @@ -147,10 +147,11 @@ deploy-prod: .prepare-deploy @$(MAKE) copy-to-xhtml @$(MAKE) deploy +# hidden service doesn't need brotli .PHONY: deploy-onion deploy-onion: @$(MAKE) WWW_ROOT=/var/www/seirdy.onion HUGO_BASEURL='http://wgq3bd2kqoybhstp77i3wrzbfnsyd27wt34psaja4grqiezqircorkyd.onion/' OUTPUT_DIR=public_onion .prepare-deploy - @$(MAKE) WWW_ROOT=/var/www/seirdy.onion HUGO_BASEURL='http://wgq3bd2kqoybhstp77i3wrzbfnsyd27wt34psaja4grqiezqircorkyd.onion/' OUTPUT_DIR=public_onion compress + @$(MAKE) WWW_ROOT=/var/www/seirdy.onion HUGO_BASEURL='http://wgq3bd2kqoybhstp77i3wrzbfnsyd27wt34psaja4grqiezqircorkyd.onion/' OUTPUT_DIR=public_onion gzip @$(MAKE) WWW_ROOT=/var/www/seirdy.onion HUGO_BASEURL='http://wgq3bd2kqoybhstp77i3wrzbfnsyd27wt34psaja4grqiezqircorkyd.onion/' OUTPUT_DIR=public_onion copy-to-xhtml @$(MAKE) WWW_ROOT=/var/www/seirdy.onion HUGO_BASEURL='http://wgq3bd2kqoybhstp77i3wrzbfnsyd27wt34psaja4grqiezqircorkyd.onion/' OUTPUT_DIR=public_onion deploy-html