Skip to content

Commit 877d384

Browse files
committed
Add Cache-Control header to index
1 parent c1a884b commit 877d384

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/http/handlers.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ func handleIndex(a *app.App, tmpl *templateSet) http.HandlerFunc {
8383
},
8484
}
8585

86+
w.Header().Set("Cache-Control", "public, max-age=60, stale-while-revalidate=300")
87+
8688
render(w, tmpl.index, "layout", map[string]any{
8789
"Packages": packages,
8890
"Filters": filters,

0 commit comments

Comments
 (0)