aboutsummaryrefslogtreecommitdiff
path: root/cmd/anubis/main.go
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2025-01-19 00:37:23 -0500
committerXe Iaso <me@xeiaso.net>2025-01-19 00:37:23 -0500
commitda4928a4be32b42813eff3a6655f04f2eab9ff79 (patch)
treecd8de5743da4be19ea77ed14fcee41e293ce03cc /cmd/anubis/main.go
parent10a208640deac5474ceb15c553cda1c17776fcfd (diff)
downloadx-da4928a4be32b42813eff3a6655f04f2eab9ff79.tar.xz
x-da4928a4be32b42813eff3a6655f04f2eab9ff79.zip
cmd/anubis: immortally cache the anubis assets
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd/anubis/main.go')
-rw-r--r--cmd/anubis/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/anubis/main.go b/cmd/anubis/main.go
index f3fa06b..c3fdbad 100644
--- a/cmd/anubis/main.go
+++ b/cmd/anubis/main.go
@@ -84,7 +84,7 @@ func main() {
mux := http.NewServeMux()
- mux.Handle(staticPath, http.StripPrefix(staticPath, http.FileServerFS(static)))
+ mux.Handle(staticPath, internal.UnchangingCache(http.StripPrefix(staticPath, http.FileServerFS(static))))
xess.Mount(mux)
mux.HandleFunc("POST /.within.website/x/cmd/anubis/api/make-challenge", s.makeChallenge)