alexkarle.com

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

commit ce99a4dd6467612ed2aa0366b7c8b1e5ce365b40 (patch)
parent 61f00e122b608dbb7fdb394e034f2ce6b41bccc6
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: