From b51fb9122deced304bf316d7f8ac3309324e35f7 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Tue, 20 May 2025 18:26:16 -0400 Subject: [ci-skip] gen-posix: Use the HTTP cache --- cmd/gen-posix/main.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmd/gen-posix/main.go') diff --git a/cmd/gen-posix/main.go b/cmd/gen-posix/main.go index 354fd3f..7525719 100644 --- a/cmd/gen-posix/main.go +++ b/cmd/gen-posix/main.go @@ -5,6 +5,8 @@ import ( "fmt" "html/template" "os" + + "git.lukeshu.com/www/lib/httpcache" ) var urls = map[string]string{} @@ -182,6 +184,8 @@ var tmpl = `{{define "document"}}{{if .}} ` func mainWithError() error { + httpcache.UserAgent = "https://git.lukeshu.com/www/tree/cmd/gen-posix" + tmpl := template.Must(template.New("page").Parse(tmpl)) var out bytes.Buffer -- cgit v1.2.3-54-g00ecf