diff options
| author | Xe Iaso <me@xeiaso.net> | 2025-01-19 00:37:23 -0500 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2025-01-19 00:37:23 -0500 |
| commit | da4928a4be32b42813eff3a6655f04f2eab9ff79 (patch) | |
| tree | cd8de5743da4be19ea77ed14fcee41e293ce03cc /cmd/anubis/main.go | |
| parent | 10a208640deac5474ceb15c553cda1c17776fcfd (diff) | |
| download | x-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.go | 2 |
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) |
