alexkarle.com

Source for alexkarle.com
git clone git://git.alexkarle.com/alexkarle.com.git
Log | Files | Refs | README | LICENSE

commit ffa2c39ebb66f3e76d6f598bf276f7fbdac49668 (patch)
parent b23b47677adfc55dfca8949e2283d4f3bcc6cda2
Author: Alex Karle <alex@alexkarle.com>
Date:   Tue,  3 May 2022 04:55:50 +0200

make: Add gzipped files to install recipe

OpenBSD 7.1 shipped with a new `gzip-static` setting for httpd(8) that
allows serving up pre-compressed files. It also updated gzip(1) to have
the -k flag to keep the originals (for clients that don't support it).

This patch takes advantage of both to save on bandwidth :)

Diffstat:
MMakefile | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -34,6 +34,7 @@ install: build > $(DESTDIR)/gopher/$$d/index.gph; \ done (cat gopher/blog/index.gph; gopher/bin/blogidx.sh) > $(DESTDIR)/gopher/blog/index.gph + gzip -k -f $(DESTDIR)/www/*.html $(DESTDIR)/www/*/*.html .PHONY: clean clean: