From 2b2ae04c5602131c6c46b7352b53bbf15ccf977d Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Mon, 7 Oct 2019 01:31:16 -0400 Subject: [PATCH] few tweaks to help page --- docs/mandoc.css | 3 +++ web.go | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/mandoc.css b/docs/mandoc.css index a76e82c..ab98733 100644 --- a/docs/mandoc.css +++ b/docs/mandoc.css @@ -11,10 +11,13 @@ /* Global defaults. */ html { max-width: 65em; + background: #305; --bg: #002; --fg: #dde; } body { background: var(--bg); color: var(--fg); + margin: 2em; + padding: 1em; font-size: 18px; font-family: Helvetica,Arial,sans-serif; } a { color: var(--fg); } diff --git a/web.go b/web.go index 26d2e81..f935b44 100644 --- a/web.go +++ b/web.go @@ -1451,8 +1451,8 @@ func serveasset(w http.ResponseWriter, r *http.Request) { } func servehelp(w http.ResponseWriter, r *http.Request) { name := mux.Vars(r)["name"] - w.Header().Set("Cache-Control", "max-age=0") - http.ServeFile(w, r, "docs/" + name) + w.Header().Set("Cache-Control", "max-age=600") + http.ServeFile(w, r, "docs/"+name) } func servehtml(w http.ResponseWriter, r *http.Request) { templinfo := getInfo(r)